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

36 lines
793 B
Nix
Raw Normal View History

{ lib, stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
2020-06-07 14:19:17 +00:00
, zope_interface
}:
buildPythonPackage rec {
pname = "gevent";
version = "20.9.0";
2020-06-07 14:19:17 +00:00
format = "pyproject";
2018-06-12 18:24:30 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz";
};
buildInputs = [ libev ];
2020-06-07 14:19:17 +00:00
propagatedBuildInputs = [
zope_interface
] ++ lib.optionals (!isPyPy) [ greenlet ];
checkPhase = ''
cd greentest
${python.interpreter} testrunner.py
'';
# Bunch of failures.
doCheck = false;
meta = with lib; {
description = "Coroutine-based networking library";
homepage = "http://www.gevent.org/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}