Files
nixpkgs/pkgs/development/python-modules/kaleido/tests.nix
Graham Christensen 6f73191dc8 python3Packages.kaleido.tests: run python with -P
Python puts the directory of the script at the front of sys.path.
The script is a file at the root of the store, so sys.path[0] is /nix/store.
The first import then lists all of /nix/store.
In some sandboxes, that listing takes many minutes.
The -P flag tells Python not to add the script directory to sys.path.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-11-17 16:04:18 -05:00

17 lines
202 B
Nix

{
runCommand,
python,
plotly,
pandas,
kaleido,
}:
runCommand "${kaleido.pname}-tests" {
nativeBuildInputs = [
python
plotly
pandas
kaleido
];
} "python3 -P ${./tests.py}"