1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, pytestCheckHook
6, watchdog
7}:
8
9buildPythonPackage rec {
10 pname = "hupper";
11 version = "1.12";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-GLFlPZgyyfjn00AZhsfnryrmeDYWvgvEBr/gsUE0pcY=";
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 nativeCheckInputs = [
21 pytestCheckHook
22 ] ++ lib.optionals (!stdenv.isDarwin) [
23 watchdog
24 ];
25
26 disabledTestPaths = [
27 # Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx
28 "tests/test_it.py"
29 ];
30
31 pythonImportsCheck = [ "hupper" ];
32
33 meta = with lib; {
34 description = "In-process file monitor/reloader for reloading your code automatically during development";
35 homepage = "https://github.com/Pylons/hupper";
36 license = licenses.mit;
37 maintainers = with maintainers; [ ];
38 };
39}