Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 742 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet }: 2 3buildPythonPackage rec { 4 pname = "gevent"; 5 version = "1.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1eb7fa3b9bd9174dfe9c3b59b7a09b768ecd496debfc4976a9530a3e15c990d1"; 10 }; 11 12 buildInputs = [ libev ]; 13 propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ]; 14 15 checkPhase = '' 16 cd greentest 17 ${python.interpreter} testrunner.py 18 ''; 19 20 # Bunch of failures. 21 doCheck = false; 22 23 meta = with stdenv.lib; { 24 description = "Coroutine-based networking library"; 25 homepage = http://www.gevent.org/; 26 license = licenses.mit; 27 platforms = platforms.unix; 28 maintainers = with maintainers; [ bjornfor ]; 29 }; 30}