Commit 9d86a58c authored by Willy's avatar Willy
Browse files

python3Packages.virtualenv-clone: use `--replace-fail`

if one of these fails, things are likely going to go wrong later down the line anyway
parent 61f96862
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']" # 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 ];