about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/circus/default.nix
blob: a4f96ccaf68e60d99413b3d6bc199d5c9b1aeb33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, buildPythonPackage, fetchPypi
, iowait, psutil, pyzmq, tornado, mock }:

buildPythonPackage 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" \
      --replace "tornado>=3.0,<5.0" "tornado>=3.0"
  '';

  checkInputs = [ mock ];

  doCheck = false; # weird error

  propagatedBuildInputs = [ iowait psutil pyzmq tornado ];

  meta = with stdenv.lib; {
    description = "A process and socket manager";
    homepage = "https://github.circus.com/circus-tent/circus";
    license = licenses.asl20;
  };
}