Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 pytestCheckHook, 7 watchdog, 8}: 9 10buildPythonPackage rec { 11 pname = "hupper"; 12 version = "1.12.1"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-Br9UFw/07PTIStXxiN7jkBFzq0ScJgitBbm/1rE+Mus="; 18 }; 19 20 # FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent 21 # segfaults in the testsuite that end up failing the tests in a background thread (in myapp) 22 nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (!stdenv.isDarwin) [ watchdog ]; 23 24 disabledTestPaths = [ 25 # Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx 26 "tests/test_it.py" 27 ]; 28 29 pythonImportsCheck = [ "hupper" ]; 30 31 meta = with lib; { 32 description = "In-process file monitor/reloader for reloading your code automatically during development"; 33 mainProgram = "hupper"; 34 homepage = "https://github.com/Pylons/hupper"; 35 license = licenses.mit; 36 maintainers = [ ]; 37 }; 38}