1{ lib, isPyPy, buildPythonPackage, fetchPypi 2, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet 3, contextlib2, termcolor, six }: 4 5buildPythonPackage rec { 6 pname = "pytest-shutil"; 7 version = "1.7.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq"; 12 }; 13 14 postPatch = '' 15 substituteInPlace setup.py \ 16 --replace "path.py" "path" 17 ''; 18 19 buildInputs = [ pytest ]; 20 checkInputs = [ cmdline pytest ]; 21 propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor six ]; 22 23 checkPhase = '' 24 py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"} 25 ''; 26 27 meta = with lib; { 28 description = "A goodie-bag of unix shell and environment tools for py.test"; 29 homepage = "https://github.com/manahl/pytest-plugins"; 30 maintainers = with maintainers; [ ryansydnor ]; 31 license = licenses.mit; 32 }; 33}