Merge #270019: python3Packages.gevent: 22.10.2 -> 23.9.1
...into staging
This commit is contained in:
commit
0f4294147c
1 changed files with 16 additions and 12 deletions
|
@ -1,6 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, python
|
, python
|
||||||
|
@ -14,29 +13,26 @@
|
||||||
, zope_event
|
, zope_event
|
||||||
, zope_interface
|
, zope_interface
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
|
# for passthru.tests
|
||||||
|
, dulwich
|
||||||
|
, gunicorn
|
||||||
|
, opentracing
|
||||||
|
, pika
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gevent";
|
pname = "gevent";
|
||||||
version = "22.10.2";
|
version = "23.9.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
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 = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython_3
|
||||||
setuptools
|
setuptools
|
||||||
|
@ -65,6 +61,14 @@ buildPythonPackage rec {
|
||||||
"gevent.events"
|
"gevent.events"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
inherit
|
||||||
|
dulwich
|
||||||
|
gunicorn
|
||||||
|
opentracing
|
||||||
|
pika;
|
||||||
|
} // lib.filterAttrs (k: v: lib.hasInfix "gevent" k) python.pkgs;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Coroutine-based networking library";
|
description = "Coroutine-based networking library";
|
||||||
homepage = "http://www.gevent.org/";
|
homepage = "http://www.gevent.org/";
|
||||||
|
|
Loading…
Reference in a new issue