From c4604c8ed4897d0b6cbda95d9787a0cb0161b955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 19 Jan 2023 11:23:34 -0800 Subject: [PATCH] python311Packages.pytest-shutil: only requires contextlib2 on Python 2 see https://github.com/man-group/pytest-plugins/pull/144 --- pkgs/development/python-modules/pytest-shutil/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-shutil/default.nix b/pkgs/development/python-modules/pytest-shutil/default.nix index 64b0ff0c1d0d..6316701787c2 100644 --- a/pkgs/development/python-modules/pytest-shutil/default.nix +++ b/pkgs/development/python-modules/pytest-shutil/default.nix @@ -11,7 +11,6 @@ , mock , path , execnet -, contextlib2 , termcolor , six @@ -32,6 +31,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ + --replace "contextlib2" 'contextlib2;python_version<"3"' \ --replace "path.py" "path" ''; @@ -44,7 +44,6 @@ buildPythonPackage rec { mock path execnet - contextlib2 termcolor six ];