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

31 lines
745 B
Nix
Raw Normal View History

2018-06-12 18:24:30 +00:00
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet }:
buildPythonPackage rec {
pname = "gevent";
2020-06-06 06:47:08 +00:00
version = "20.5.2";
2018-06-12 18:24:30 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 06:47:08 +00:00
sha256 = "2756de36f56b33c46f6cc7146a74ba65afcd1471922c95b6771ce87b279d689c";
};
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 ];
};
}