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 = [
23 pytestCheckHook
24 ]
25 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
26
27 disabledTestPaths = [
28 # Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx
29 "tests/test_it.py"
30 ];
31
32 pythonImportsCheck = [ "hupper" ];
33
34 meta = with lib; {
35 description = "In-process file monitor/reloader for reloading your code automatically during development";
36 mainProgram = "hupper";
37 homepage = "https://github.com/Pylons/hupper";
38 license = licenses.mit;
39 maintainers = [ ];
40 };
41}