841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
37 lines
876 B
Nix
37 lines
876 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, coverage
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-testmon";
|
|
version = "1.1.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c8810f991545e352f646fb382e5962ff54b8aa52b09d62d35ae04f0d7a9c58d9";
|
|
};
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# avoid tests which try to import unittest_mixins
|
|
# unittest_mixins doesn't seem to be very active
|
|
checkPhase = ''
|
|
cd test
|
|
pytest test_{core,process_code,pytest_assumptions}.py
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|