nixpkgs/pkgs/development/python-modules/gevent/default.nix
2018-06-22 13:09:15 +02:00

32 lines
796 B
Nix

{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
buildPythonPackage rec {
pname = "gevent";
version = "1.3.3";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/g/gevent/${name}.tar.gz";
sha256 = "59465c7bce7671834f58b44ef62cd8626f1557a0e7e3de44a3b596056f8adc73";
};
buildInputs = [ libev ];
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
checkPhase = ''
cd greentest
${python.interpreter} testrunner.py
'';
# Bunch of failures.
doCheck = false;
meta = with stdenv.lib; {
description = "Coroutine-based networking library";
homepage = http://www.gevent.org/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}