Merge #270019: python3Packages.gevent: 22.10.2 -> 23.9.1

...into staging
This commit is contained in:
Vladimír Čunát 2023-12-01 07:25:59 +01:00
commit 0f4294147c
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,6 +1,5 @@
{ lib
, fetchPypi
, fetchpatch
, buildPythonPackage
, isPyPy
, python
@ -14,29 +13,26 @@
, zope_event
, zope_interface
, pythonOlder
# for passthru.tests
, dulwich
, gunicorn
, opentracing
, pika
}:
buildPythonPackage rec {
pname = "gevent";
version = "22.10.2";
version = "23.9.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-HKAdoXbuN7NSeicC99QNvJ/7jPx75aA7+k+e7EXlXEY=";
hash = "sha256-csACI1OQ1G+Uk4qWkg2IVtT/2d32KjA6DXwRiJQJfjQ=";
};
patches = [
# Replace deprecated pkg_resources with importlib-metadata
(fetchpatch {
url = "https://github.com/gevent/gevent/commit/bd96d8e14dc99f757de22ab4bb98439f912dab1e.patch";
hash = "sha256-Y+cxIScuEgAVYmmxBJ8OI+JuJ4G+iiROTcRdWglo3l0=";
includes = [ "src/gevent/events.py" ];
})
];
nativeBuildInputs = [
cython_3
setuptools
@ -65,6 +61,14 @@ buildPythonPackage rec {
"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/";