python3Packages.pytest-shutil: fix build

Propagates six and replaces path.py dependency with path, the new name.
This commit is contained in:
Martin Weinelt 2022-04-13 21:11:41 +02:00
parent 90112c221f
commit abacec3d0b

View file

@ -1,6 +1,6 @@
{ lib, isPyPy, buildPythonPackage, fetchPypi
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
, contextlib2, termcolor }:
, contextlib2, termcolor, six }:
buildPythonPackage rec {
pname = "pytest-shutil";
@ -11,9 +11,14 @@ buildPythonPackage rec {
sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
};
postPatch = ''
substituteInPlace setup.py \
--replace "path.py" "path"
'';
buildInputs = [ pytest ];
checkInputs = [ cmdline pytest ];
propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor ];
propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor six ];
checkPhase = ''
py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}