Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2023-08-19 12:01:31 +00:00
committed by GitHub
49 changed files with 596 additions and 329 deletions
@@ -114,6 +114,10 @@ let
nix-pythonprefix-mypy = callPackage ./tests/test_nix_pythonprefix {
interpreter = python;
};
# Make sure tkinter is importable. See https://github.com/NixOS/nixpkgs/issues/238990
tkinter = callPackage ./tests/test_tkinter {
interpreter = python;
};
}
);
@@ -0,0 +1,17 @@
{ interpreter, writeText, runCommand }:
let
pythonEnv = interpreter.withPackages(ps: [
ps.tkinter
]);
pythonScript = writeText "myscript.py" ''
import tkinter
print(tkinter)
'';
in runCommand "${interpreter.name}-tkinter-test" {} ''
${pythonEnv}/bin/python ${pythonScript}
touch $out
''