2019-06-12 01:18:47 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, coverage
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-testmon";
|
2020-05-09 11:01:57 +01:00
|
|
|
version = "1.0.2";
|
2019-06-12 01:18:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:57 +01:00
|
|
|
sha256 = "fdb016d953036051d1ef0e36569b7168cefa4914014789a65a4ffefc87f85ac5";
|
2019-06-12 01:18:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2019-12-21 22:34:51 +00:00
|
|
|
# avoid tests which try to import unittest_mixins
|
|
|
|
# unittest_mixins doesn't seem to be very active
|
2019-06-12 01:18:47 +01:00
|
|
|
checkPhase = ''
|
2019-12-21 22:34:51 +00:00
|
|
|
cd test
|
|
|
|
pytest test_{core,process_code,pytest_assumptions}.py
|
2019-06-12 01:18:47 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|