2021-01-25 08:26:54 +00:00
|
|
|
{ lib, isPyPy, buildPythonPackage, fetchPypi
|
2019-06-01 19:01:40 +01:00
|
|
|
, pytest, cmdline, pytestcov, coverage, setuptools-git, mock, pathpy, execnet
|
2018-04-07 13:55:34 +01:00
|
|
|
, contextlib2, termcolor }:
|
2018-04-03 11:45:49 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-shutil";
|
2019-06-01 19:01:40 +01:00
|
|
|
version = "1.7.0";
|
2018-04-03 11:45:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-01 19:01:40 +01:00
|
|
|
sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
|
2018-04-03 11:45:49 +01:00
|
|
|
};
|
|
|
|
|
2019-06-01 19:01:40 +01:00
|
|
|
checkInputs = [ cmdline pytest ];
|
2018-04-07 13:55:34 +01:00
|
|
|
propagatedBuildInputs = [ pytestcov coverage setuptools-git mock pathpy execnet contextlib2 termcolor ];
|
2019-06-01 19:01:40 +01:00
|
|
|
nativeBuildInputs = [ pytest ];
|
2018-04-03 11:45:49 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-02-12 03:36:36 +00:00
|
|
|
py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
|
2018-04-03 11:45:49 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-03 11:45:49 +01:00
|
|
|
description = "A goodie-bag of unix shell and environment tools for py.test";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/manahl/pytest-plugins";
|
2018-04-03 11:45:49 +01:00
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|