Skip to content

Commit 6661c54

Browse files
committed
python313Packages.virtualenv-clone: alleviate test failures
1 parent 4c9ac29 commit 6661c54

File tree

1 file changed

+8
-0
lines changed
  • pkgs/development/python-modules/virtualenv-clone

1 file changed

+8
-0
lines changed

pkgs/development/python-modules/virtualenv-clone/default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ buildPythonPackage rec {
2525
2626
substituteInPlace tests/test_virtualenv_sys.py \
2727
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
28+
29+
# PermissionError: [Errno 13] Permission denied: '/tmp/test_fixup_pth_file.pth'
30+
# Unable to reproduce.
31+
# Theory: this fixed path may collide with itself on darwin if this package is built for multiple python versions simultaneously
32+
substituteInPlace tests/test_fixup_scripts.py \
33+
--replace-fail \
34+
"pth = '/tmp/test_fixup_pth_file.pth'" \
35+
"pth = '$(mktemp -d)/test_fixup_pth_file.pth'"
2836
'';
2937

3038
propagatedBuildInputs = [ virtualenv ];

0 commit comments

Comments
 (0)