Skip to content

Commit c4604c8

Browse files
committed
python311Packages.pytest-shutil: only requires contextlib2 on Python 2
see man-group/pytest-plugins#144
1 parent 91c3020 commit c4604c8

File tree

1 file changed

+1
-2
lines changed
  • pkgs/development/python-modules/pytest-shutil

1 file changed

+1
-2
lines changed

pkgs/development/python-modules/pytest-shutil/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
, mock
1212
, path
1313
, execnet
14-
, contextlib2
1514
, termcolor
1615
, six
1716

@@ -32,6 +31,7 @@ buildPythonPackage rec {
3231

3332
postPatch = ''
3433
substituteInPlace setup.py \
34+
--replace "contextlib2" 'contextlib2;python_version<"3"' \
3535
--replace "path.py" "path"
3636
'';
3737

@@ -44,7 +44,6 @@ buildPythonPackage rec {
4444
mock
4545
path
4646
execnet
47-
contextlib2
4847
termcolor
4948
six
5049
];

0 commit comments

Comments
 (0)