nixpkgs/pkgs/development/python-modules/gevent/default.nix
Martin Weinelt 528354e66c
python312Packages.cython: 0.29.36 -> 3.0.9
Folds the cython_3 attribute into the primary cython attribute and
migrates all packages from the versioned attribute.

The old version will be provided through the cython_0 attribute in an
effort to phase it out.
2024-03-27 18:35:05 +01:00

80 lines
1.2 KiB
Nix

{ lib
, fetchPypi
, buildPythonPackage
, isPyPy
, python
, libev
, cffi
, cython
, greenlet
, importlib-metadata
, setuptools
, wheel
, zope-event
, zope-interface
, pythonOlder
# for passthru.tests
, dulwich
, gunicorn
, opentracing
, pika
}:
buildPythonPackage rec {
pname = "gevent";
version = "24.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Qy/Hb2gKz3zxiMLuD106tztjwfAxFMfNijTOu+WqIFY=";
};
nativeBuildInputs = [
cython
setuptools
wheel
] ++ lib.optionals (!isPyPy) [
cffi
];
buildInputs = [
libev
];
propagatedBuildInputs = [
importlib-metadata
zope-event
zope-interface
] ++ lib.optionals (!isPyPy) [
greenlet
];
# Bunch of failures.
doCheck = false;
pythonImportsCheck = [
"gevent"
"gevent.events"
];
passthru.tests = {
inherit
dulwich
gunicorn
opentracing
pika;
} // lib.filterAttrs (k: v: lib.hasInfix "gevent" k) python.pkgs;
meta = with lib; {
description = "Coroutine-based networking library";
homepage = "http://www.gevent.org/";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
};
}