python311Packages.pytest-shutil: only requires contextlib2 on Python 2

see https://github.com/man-group/pytest-plugins/pull/144
This commit is contained in:
Robert Schütz 2023-01-19 11:23:34 -08:00
parent 91c3020954
commit c4604c8ed4

View File

@ -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
];