Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 21 lines 606 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, pytestcov, watchdog, mock 3}: 4 5buildPythonPackage rec { 6 pname = "hupper"; 7 version = "1.6.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "fe8febd68cec7fbed174fcbb0b42c427f96c8a7471c1cd4999fc698dd8dc6c34"; 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}