2019-06-12 02:18:47 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, coverage
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-testmon";
|
2019-07-21 11:20:00 +02:00
|
|
|
version = "0.9.18";
|
2019-06-12 02:18:47 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-21 11:20:00 +02:00
|
|
|
sha256 = "05648f9b22aeeda9d32e61b46fa78c9ff28f217d69005b3b19ffb75d5992187e";
|
2019-06-12 02:18:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-21 11:20:00 +02:00
|
|
|
pytest --deselect=test/test_testmon.py::TestmonDeselect::test_dependent_testmodule
|
2019-06-12 02:18:47 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tarpas/pytest-testmon/";
|
|
|
|
description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.dmvianna ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|