depot/third_party/nixpkgs/pkgs/development/python-modules/gevent/default.nix

36 lines
802 B
Nix
Raw Normal View History

{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
, zope_interface
}:
buildPythonPackage rec {
pname = "gevent";
2020-11-23 15:24:06 +00:00
version = "20.9.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
2020-11-23 15:24:06 +00:00
sha256 = "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz";
};
buildInputs = [ libev ];
propagatedBuildInputs = [
zope_interface
] ++ 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 ];
};
}