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