python3Packages.pytest-shutil: fix build

Propagates six and replaces path.py dependency with path, the new name.
main
Martin Weinelt 2 years ago
parent 90112c221f
commit abacec3d0b
  1. 9
      pkgs/development/python-modules/pytest-shutil/default.nix

@ -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)'"}

Loading…
Cancel
Save