python312Packages.virtualenv-clone: fix tests

virtualenv-clone has a list of Python versions that it uses for its
tests. That list does not include Python 3.11 or 3.12. The upstream repo
has a fix for that issue - but the project hasn't made a new release
with that change. There was already a fix for Python 3.11 in the nix
pacakge - we just extend the existing fix to also include Python 3.12.
This commit is contained in:
Palmer Cox
2024-05-11 13:13:22 -04:00
parent 8c810f6f55
commit e107f153bf
@@ -20,7 +20,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace tests/__init__.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
--replace "'3.9', '3.10']" "'3.9', '3.10', '3.11']" # if the Python version used isn't in this list, tests fail
--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
substituteInPlace tests/test_virtualenv_sys.py \
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"