2019-02-12 03:36:36 +00:00
|
|
|
{ stdenv, lib, isPyPy, buildPythonPackage, fetchPypi
|
2019-02-15 09:08:27 +00:00
|
|
|
, pytest_3, 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-02-14 07:37:28 +00:00
|
|
|
version = "1.6.0";
|
2018-04-03 11:45:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:28 +00:00
|
|
|
sha256 = "efe615b7709637ec8828abebee7fc2ad033ae0f1fc54145f769a8b5e8cc3b4ca";
|
2018-04-03 11:45:49 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
checkInputs = [ cmdline pytest_3 ];
|
2018-04-07 13:55:34 +01:00
|
|
|
propagatedBuildInputs = [ pytestcov coverage setuptools-git mock pathpy execnet contextlib2 termcolor ];
|
2019-02-15 09:08:27 +00:00
|
|
|
nativeBuildInputs = [ pytest_3 ];
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|