nixpkgs-suyu/pkgs/tools/networking/circus/default.nix

41 lines
894 B
Nix
Raw Normal View History

{ lib, python3 }:
let
python = python3.override {
self = python;
packageOverrides = self: super: {
2020-08-29 14:47:43 +02:00
tornado = super.tornado_4;
};
};
2020-08-29 14:47:43 +02:00
inherit (python.pkgs) buildPythonApplication fetchPypi iowait psutil pyzmq tornado mock six;
in
buildPythonApplication rec {
pname = "circus";
2020-03-31 04:28:35 +02:00
version = "0.16.1";
src = fetchPypi {
inherit pname version;
2020-03-31 04:28:35 +02:00
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 six ];
meta = with lib; {
description = "A process and socket manager";
2022-01-07 08:04:34 +01:00
homepage = "https://github.com/circus-tent/circus";
license = licenses.asl20;
};
}