Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 606 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, pytestcov, watchdog, mock 3}: 4 5buildPythonPackage rec { 6 pname = "hupper"; 7 version = "1.4.2"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "eb3778398658a011c96e620adcd73175f306f880a6d86b2ebb6d2a15a74b6b9b"; 12 }; 13 14 checkPhase = '' 15 py.test 16 ''; 17 18 # FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent 19 # segfaults in the testsuite that end up failing the tests in a background thread (in myapp) 20 checkInputs = [ pytest pytestcov mock ] ++ stdenv.lib.optional (!stdenv.isDarwin) watchdog; 21}