Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, coverage 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-testmon"; 11 version = "1.0.2"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "fdb016d953036051d1ef0e36569b7168cefa4914014789a65a4ffefc87f85ac5"; 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