From e107f153bfa7a7a0b7ae5564b58e33866304c0fc Mon Sep 17 00:00:00 2001 From: Palmer Cox Date: Fri, 10 May 2024 23:23:18 -0400 Subject: [PATCH] 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. --- 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 51c1d12b184d..2ae7abe457db 100644 --- a/pkgs/development/python-modules/virtualenv-clone/default.nix +++ b/pkgs/development/python-modules/virtualenv-clone/default.nix @@ -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'"