1{ stdenv, lib, buildPythonPackage, fetchPypi
2, mock
3, pytest
4, setuptools
5}:
6
7buildPythonPackage rec {
8 pname = "supervisor";
9 version = "4.2.2";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "5b2b8882ec8a3c3733cce6965cc098b6d80b417f21229ab90b18fe551d619f90";
14 };
15
16 # wants to write to /tmp/foo which is likely already owned by another
17 # nixbld user on hydra
18 doCheck = !stdenv.isDarwin;
19 checkInputs = [ mock pytest ];
20 checkPhase = ''
21 pytest
22 '';
23
24 propagatedBuildInputs = [ setuptools ];
25
26 meta = with lib; {
27 description = "A system for controlling process state under UNIX";
28 homepage = "http://supervisord.org/";
29 license = licenses.free; # http://www.repoze.org/LICENSE.txt
30 maintainers = with maintainers; [ zimbatm ];
31 };
32}