From 6f73191dc8fda79ecd1777fa313dadd023037efc Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 17 Nov 2026 13:39:59 -0500 Subject: [PATCH] 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) --- pkgs/development/python-modules/kaleido/tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/kaleido/tests.nix b/pkgs/development/python-modules/kaleido/tests.nix index 1b68b2a68ee90..f213092aedd40 100644 --- a/pkgs/development/python-modules/kaleido/tests.nix +++ b/pkgs/development/python-modules/kaleido/tests.nix @@ -13,4 +13,4 @@ runCommand "${kaleido.pname}-tests" { pandas kaleido ]; -} "python3 ${./tests.py}" +} "python3 -P ${./tests.py}"