Skip to content

Commit 9d86a58

Browse files
committed
python3Packages.virtualenv-clone: use --replace-fail
if one of these fails, things are likely going to go wrong later down the line anyway
1 parent 61f9686 commit 9d86a58

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ buildPythonPackage rec {
2020

2121
postPatch = ''
2222
substituteInPlace tests/__init__.py \
23-
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
24-
--replace "'3.9', '3.10']" "'3.9', '3.10', '3.11', '3.12']" # if the Python version used isn't in this list, tests fail
23+
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
24+
--replace-fail "'3.9', '3.10']" "'3.9', '3.10', '3.11', '3.12']" # if the Python version used isn't in this list, tests fail
2525
2626
substituteInPlace tests/test_virtualenv_sys.py \
27-
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
27+
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
2828
'';
2929

3030
propagatedBuildInputs = [ virtualenv ];

0 commit comments

Comments
 (0)