1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/gevent/default.nix

31 lines
742 B
Nix
Raw Normal View History

2018-06-12 19:24:30 +01:00
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet }:
buildPythonPackage rec {
pname = "gevent";
2018-07-22 11:09:26 +01:00
version = "1.3.5";
2018-06-12 19:24:30 +01:00
src = fetchPypi {
inherit pname version;
2018-07-22 11:09:26 +01:00
sha256 = "7f15861f3cc92f49663ca88c4774d26d8044783a65fbc28071a2bd1c7bf36ff0";
};
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 ];
};
}