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