2021-02-05 17:12:51 +00:00
|
|
|
{ lib, isPyPy, buildPythonPackage, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
|
|
|
|
, contextlib2, termcolor, six }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-shutil";
|
|
|
|
version = "1.7.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
|
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "path.py" "path"
|
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ cmdline pytest ];
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A goodie-bag of unix shell and environment tools for py.test";
|
|
|
|
homepage = "https://github.com/manahl/pytest-plugins";
|
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|