2019-09-30 20:17:58 +03:00
|
|
|
{ stdenv, lib, buildPythonPackage, isPy3k, fetchPypi
|
2018-05-25 23:35:25 +03:00
|
|
|
, mock
|
|
|
|
, meld3
|
2019-09-30 20:17:58 +03:00
|
|
|
, pytest
|
2019-09-29 15:52:08 +03:00
|
|
|
, setuptools
|
2018-05-25 23:35:25 +03:00
|
|
|
}:
|
2019-09-29 15:52:08 +03:00
|
|
|
|
2018-05-25 23:35:25 +03:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "supervisor";
|
2020-06-06 09:47:33 +03:00
|
|
|
version = "4.2.0";
|
2018-05-25 23:35:25 +03:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 09:47:33 +03:00
|
|
|
sha256 = "64082ebedf6d36ff409ab2878f1aad5c9035f916c5f15a9a1ec7dffc6dfbbed8";
|
2018-05-25 23:35:25 +03:00
|
|
|
};
|
|
|
|
|
2020-06-27 14:39:00 +03:00
|
|
|
patches = [
|
|
|
|
# SOMAXCONN limit of glibc-2.31 has been increased from 128 to 4096:
|
|
|
|
# * https://sourceware.org/git/?p=glibc.git;a=commit;h=96958e2700f5b4f4d1183a0606b2b9848a53ea44
|
|
|
|
# * https://github.com/Supervisor/supervisor/issues/1346
|
|
|
|
./glibc-2.31.patch
|
|
|
|
];
|
|
|
|
|
2019-09-30 20:17:58 +03:00
|
|
|
# wants to write to /tmp/foo which is likely already owned by another
|
|
|
|
# nixbld user on hydra
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
2018-05-25 23:35:25 +03:00
|
|
|
|
2019-09-29 15:52:08 +03:00
|
|
|
propagatedBuildInputs = [ meld3 setuptools ];
|
2018-05-25 23:35:25 +03:00
|
|
|
|
2019-09-29 15:52:08 +03:00
|
|
|
meta = with lib; {
|
2018-05-25 23:35:25 +03:00
|
|
|
description = "A system for controlling process state under UNIX";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://supervisord.org/";
|
2019-09-29 15:52:08 +03:00
|
|
|
license = licenses.free; # http://www.repoze.org/LICENSE.txt
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2018-05-25 23:35:25 +03:00
|
|
|
};
|
|
|
|
}
|