Unverified Commit 4c9ac29b authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

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

parents 5e57e4ec b25c2dd4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 ];