mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
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)
17 lines
202 B
Nix
17 lines
202 B
Nix
{
|
|
runCommand,
|
|
python,
|
|
plotly,
|
|
pandas,
|
|
kaleido,
|
|
}:
|
|
|
|
runCommand "${kaleido.pname}-tests" {
|
|
nativeBuildInputs = [
|
|
python
|
|
plotly
|
|
pandas
|
|
kaleido
|
|
];
|
|
} "python3 -P ${./tests.py}"
|