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