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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
988 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, isPyPy
, python
, libev
, cffi
, cython_3
, greenlet
, setuptools
, wheel
, zope_event
2020-06-07 14:19:17 +00:00
, zope_interface
, pythonOlder
2020-06-07 14:19:17 +00:00
}:
buildPythonPackage rec {
pname = "gevent";
version = "22.10.2";
2020-06-07 14:19:17 +00:00
format = "pyproject";
disabled = pythonOlder "3.7";
2018-06-12 18:24:30 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-HKAdoXbuN7NSeicC99QNvJ/7jPx75aA7+k+e7EXlXEY=";
};
nativeBuildInputs = [
cython_3
setuptools
wheel
] ++ lib.optionals (!isPyPy) [
cffi
];
buildInputs = [
libev
];
2020-06-07 14:19:17 +00:00
propagatedBuildInputs = [
zope_event
2020-06-07 14:19:17 +00:00
zope_interface
] ++ lib.optionals (!isPyPy) [
greenlet
];
# Bunch of failures.
doCheck = false;
pythonImportsCheck = [
"gevent"
];
meta = with lib; {
description = "Coroutine-based networking library";
homepage = "http://www.gevent.org/";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
};
}