2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3 }:
|
2018-03-31 11:18:28 +01:00
|
|
|
|
2019-11-11 13:09:58 +00:00
|
|
|
let
|
2020-08-29 13:26:55 +01:00
|
|
|
python = python3.override {
|
|
|
|
self = python;
|
|
|
|
packageOverrides = self: super: {
|
2020-08-29 13:47:43 +01:00
|
|
|
tornado = super.tornado_4;
|
2020-08-29 13:26:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-29 13:47:43 +01:00
|
|
|
inherit (python.pkgs) buildPythonApplication fetchPypi iowait psutil pyzmq tornado mock six;
|
2019-11-11 13:09:58 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2018-03-31 11:18:28 +01:00
|
|
|
pname = "circus";
|
2020-03-31 03:28:35 +01:00
|
|
|
version = "0.16.1";
|
2018-03-31 11:18:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-31 03:28:35 +01:00
|
|
|
sha256 = "0paccmqwgard2l0z7swcc3nwc418l9b4mfaddb4s31bpnqg02z6x";
|
2018-03-31 11:18:28 +01:00
|
|
|
};
|
|
|
|
|
2018-09-20 23:18:13 +01:00
|
|
|
postPatch = ''
|
|
|
|
# relax version restrictions to fix build
|
|
|
|
substituteInPlace setup.py \
|
2019-11-11 13:09:58 +00:00
|
|
|
--replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0"
|
2018-09-20 23:18:13 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
2018-03-31 11:18:28 +01:00
|
|
|
doCheck = false; # weird error
|
|
|
|
|
2020-08-29 13:26:55 +01:00
|
|
|
propagatedBuildInputs = [ iowait psutil pyzmq tornado six ];
|
2018-09-20 23:18:13 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-20 23:18:13 +01:00
|
|
|
description = "A process and socket manager";
|
|
|
|
homepage = "https://github.circus.com/circus-tent/circus";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
2018-03-31 11:18:28 +01:00
|
|
|
}
|