python313Packages.virtualenv-clone: fix tests (#404248)

This commit is contained in:
Peder Bergebakken Sundt
2025-05-05 23:55:45 +02:00
committed by GitHub
@@ -20,11 +20,11 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace tests/__init__.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
--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
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
--replace-fail "'3.9', '3.10']" "'3.9', '3.10', '3.11', '3.12', '3.13']" # if the Python version used isn't in this list, tests fail
substituteInPlace tests/test_virtualenv_sys.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
'';
propagatedBuildInputs = [ virtualenv ];