2019-06-12 01:18:47 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-15 23:56:27 +01:00
|
|
|
, pythonOlder
|
2019-06-12 01:18:47 +01:00
|
|
|
, coverage
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-testmon";
|
2021-03-19 13:54:11 +00:00
|
|
|
version = "1.1.0";
|
2020-08-15 23:56:27 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-06-12 01:18:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-19 13:54:11 +00:00
|
|
|
sha256 = "sha256-+IpT0o+Jg2UJcy6d7mEdZsYfW4IXIBu4IqBFbywyPRk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|