python311Packages.pytest-shutil: only requires contextlib2 on Python 2
see https://github.com/man-group/pytest-plugins/pull/144
This commit is contained in:
parent
91c3020954
commit
c4604c8ed4
@ -11,7 +11,6 @@
|
|||||||
, mock
|
, mock
|
||||||
, path
|
, path
|
||||||
, execnet
|
, execnet
|
||||||
, contextlib2
|
|
||||||
, termcolor
|
, termcolor
|
||||||
, six
|
, six
|
||||||
|
|
||||||
@ -32,6 +31,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
|
--replace "contextlib2" 'contextlib2;python_version<"3"' \
|
||||||
--replace "path.py" "path"
|
--replace "path.py" "path"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -44,7 +44,6 @@ buildPythonPackage rec {
|
|||||||
mock
|
mock
|
||||||
path
|
path
|
||||||
execnet
|
execnet
|
||||||
contextlib2
|
|
||||||
termcolor
|
termcolor
|
||||||
six
|
six
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user