1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, coverage 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-testmon"; 11 version = "1.2.2"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "e69d5aeac4e371986f94e8ad06e56d70633870d026f2306fca44051f02fcb688"; 17 }; 18 19 propagatedBuildInputs = [ coverage ]; 20 21 checkInputs = [ pytest ]; 22 23 # avoid tests which try to import unittest_mixins 24 # unittest_mixins doesn't seem to be very active 25 checkPhase = '' 26 cd test 27 pytest test_{core,process_code,pytest_assumptions}.py 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/tarpas/pytest-testmon/"; 32 description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes"; 33 license = licenses.mit; 34 maintainers = [ maintainers.dmvianna ]; 35 }; 36} 37