about summary refs log tree commit diff
path: root/pkgs/tools/networking/circus/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/circus/default.nix')
-rw-r--r--pkgs/tools/networking/circus/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/networking/circus/default.nix b/pkgs/tools/networking/circus/default.nix
new file mode 100644
index 000000000000..10edc92a9951
--- /dev/null
+++ b/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.15.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "d1603cf4c4f620ce6593d3d2a67fad25bf0242183ea24110d8bb1c8079c55d1b";
+  };
+
+  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;
+  };
+}