blob: 92e2dbc26a534d4f6230d6cd0c2f8956233b2287 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001include $(TOPDIR)/rules.mk
2
3PKG_NAME:=python-gevent
4PKG_VERSION:=23.9.1
5PKG_RELEASE:=1
6
7PYPI_NAME:=gevent
8PKG_HASH:=72c002235390d46f94938a96920d8856d4ffd9ddf62a303a0d7c118894097e34
9
10PKG_MAINTAINER:=Andy Syam <privasisource@gmail.com>
11PKG_LICENSE:=MIT
12PKG_LICENSE_FILES:=LICENSE
13
14PKG_BUILD_FLAGS:=no-mips16
15PKG_BUILD_DEPENDS:=python-cffi/host python-greenlet/host python-cython/host
16
17include ../pypi.mk
18include $(INCLUDE_DIR)/package.mk
19include ../python3-package.mk
20
21PYTHON3_PKG_SETUP_VARS:= \
22 GEVENTSETUP_EMBED=0 \
23 GEVENTSETUP_EMBED_LIBEV=0 \
24 GEVENTSETUP_EMBED_CARES=0
25
26define Package/python3-gevent
27 SUBMENU:=Python
28 SECTION:=lang
29 CATEGORY:=Languages
30 TITLE:=Coroutine-based network library
31 URL:=https://github.com/gevent/gevent
32 DEPENDS:= \
33 +python3-light \
34 +python3-cffi \
35 +python3-greenlet \
36 +python3-zope-interface \
37 +libcares \
38 +libev \
39 +libuv
40endef
41
42define Package/python3-gevent/description
43 gevent is a coroutine -based Python networking library that uses greenlet
44 to provide a high-level synchronous API on top of the libev or libuv event loop.
45endef
46
47$(eval $(call Py3Package,python3-gevent))
48$(eval $(call BuildPackage,python3-gevent))
49$(eval $(call BuildPackage,python3-gevent-src))