Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 31 lines 793 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, iowait, psutil, pyzmq, tornado, mock }: 3 4buildPythonPackage rec { 5 pname = "circus"; 6 version = "0.15.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "d1603cf4c4f620ce6593d3d2a67fad25bf0242183ea24110d8bb1c8079c55d1b"; 11 }; 12 13 postPatch = '' 14 # relax version restrictions to fix build 15 substituteInPlace setup.py \ 16 --replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0" \ 17 --replace "tornado>=3.0,<5.0" "tornado>=3.0" 18 ''; 19 20 checkInputs = [ mock ]; 21 22 doCheck = false; # weird error 23 24 propagatedBuildInputs = [ iowait psutil pyzmq tornado ]; 25 26 meta = with stdenv.lib; { 27 description = "A process and socket manager"; 28 homepage = "https://github.circus.com/circus-tent/circus"; 29 license = licenses.asl20; 30 }; 31}