Commit e107f153 authored by Palmer Cox's avatar Palmer Cox
Browse files

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.
parent 8c810f6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'"