From 9d86a58cc121b3023e1240a18744783cb668c4b5 Mon Sep 17 00:00:00 2001 From: Willy Date: Mon, 5 May 2025 01:56:31 +0200 Subject: [PATCH 1/2] python3Packages.virtualenv-clone: use `--replace-fail` if one of these fails, things are likely going to go wrong later down the line anyway --- .../development/python-modules/virtualenv-clone/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/virtualenv-clone/default.nix b/pkgs/development/python-modules/virtualenv-clone/default.nix index 056e38a32923..107c0a0f62c7 100644 --- a/pkgs/development/python-modules/virtualenv-clone/default.nix +++ b/pkgs/development/python-modules/virtualenv-clone/default.nix @@ -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 ]; From b25c2dd4fb1fb9e9a19354a57fa23897c54a6f20 Mon Sep 17 00:00:00 2001 From: Willy Date: Mon, 5 May 2025 01:57:36 +0200 Subject: [PATCH 2/2] python313Packages.virtualenv-clone: fix tests keeping the list up to date with every new python release _really_ isn't pretty but I can't think of a quick way to patch this in either --- pkgs/development/python-modules/virtualenv-clone/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/virtualenv-clone/default.nix b/pkgs/development/python-modules/virtualenv-clone/default.nix index 107c0a0f62c7..36d6ca88faf4 100644 --- a/pkgs/development/python-modules/virtualenv-clone/default.nix +++ b/pkgs/development/python-modules/virtualenv-clone/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace tests/__init__.py \ --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 + --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-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'"