1{ stdenv, buildPythonPackage, fetchPypi
2, pytest, pytestcov, watchdog, mock
3}:
4
5buildPythonPackage rec {
6 pname = "hupper";
7 version = "1.9.1";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "3b1c2222ec7b8159e7ad059e4493c6cc634c86184af0bf2ce5aba6edd241cf5f";
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}