2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2020-09-25 04:45:31 +00:00
|
|
|
python = python3.override {
|
|
|
|
self = python;
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
tornado = super.tornado_4;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (python.pkgs) buildPythonApplication fetchPypi iowait psutil pyzmq tornado mock six;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "circus";
|
|
|
|
version = "0.16.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0paccmqwgard2l0z7swcc3nwc418l9b4mfaddb4s31bpnqg02z6x";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# relax version restrictions to fix build
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
doCheck = false; # weird error
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ iowait psutil pyzmq tornado six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A process and socket manager";
|
|
|
|
homepage = "https://github.circus.com/circus-tent/circus";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|