diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/circus')
-rw-r--r-- | nixpkgs/pkgs/tools/networking/circus/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/networking/circus/default.nix b/nixpkgs/pkgs/tools/networking/circus/default.nix new file mode 100644 index 000000000000..82c9db90432e --- /dev/null +++ b/nixpkgs/pkgs/tools/networking/circus/default.nix @@ -0,0 +1,33 @@ +{ stdenv, python3Packages }: + +let + inherit (python3Packages) buildPythonApplication fetchPypi iowait psutil pyzmq tornado_4 mock; +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 + + propagatedBuildInputs = [ iowait psutil pyzmq tornado_4 ]; + + meta = with stdenv.lib; { + description = "A process and socket manager"; + homepage = "https://github.circus.com/circus-tent/circus"; + license = licenses.asl20; + }; +} |