python-gevent: add python-gevent
authorAndy Syam <privasisource@gmail.com>
Sat, 23 Dec 2023 08:14:41 +0000 (16:14 +0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 3 Jan 2024 05:02:10 +0000 (21:02 -0800)
https://pypi.org/project/gevent/

https://www.gevent.org/development/installing_from_source.html

source code

https://github.com/gevent/gevent
Signed-off-by: Andy Syam <privasisource@gmail.com>
lang/python/python-gevent/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-gevent/Makefile b/lang/python/python-gevent/Makefile
new file mode 100644 (file)
index 0000000..92e2dbc
--- /dev/null
@@ -0,0 +1,49 @@
+include $(TOPDIR)/rules.mk\r
+\r
+PKG_NAME:=python-gevent\r
+PKG_VERSION:=23.9.1\r
+PKG_RELEASE:=1\r
+\r
+PYPI_NAME:=gevent\r
+PKG_HASH:=72c002235390d46f94938a96920d8856d4ffd9ddf62a303a0d7c118894097e34\r
+\r
+PKG_MAINTAINER:=Andy Syam <privasisource@gmail.com>\r
+PKG_LICENSE:=MIT\r
+PKG_LICENSE_FILES:=LICENSE\r
+\r
+PKG_BUILD_FLAGS:=no-mips16\r
+PKG_BUILD_DEPENDS:=python-cffi/host python-greenlet/host python-cython/host\r
+\r
+include ../pypi.mk\r
+include $(INCLUDE_DIR)/package.mk\r
+include ../python3-package.mk\r
+\r
+PYTHON3_PKG_SETUP_VARS:= \\r
+       GEVENTSETUP_EMBED=0 \\r
+       GEVENTSETUP_EMBED_LIBEV=0 \\r
+       GEVENTSETUP_EMBED_CARES=0\r
+\r
+define Package/python3-gevent\r
+  SUBMENU:=Python\r
+  SECTION:=lang\r
+  CATEGORY:=Languages\r
+  TITLE:=Coroutine-based network library\r
+  URL:=https://github.com/gevent/gevent\r
+  DEPENDS:= \\r
+       +python3-light \\r
+       +python3-cffi \\r
+       +python3-greenlet \\r
+       +python3-zope-interface \\r
+       +libcares \\r
+       +libev \\r
+       +libuv\r
+endef\r
+\r
+define Package/python3-gevent/description\r
+  gevent is a coroutine -based Python networking library that uses greenlet\r
+  to provide a high-level synchronous API on top of the libev or libuv event loop.\r
+endef\r
+\r
+$(eval $(call Py3Package,python3-gevent))\r
+$(eval $(call BuildPackage,python3-gevent))\r
+$(eval $(call BuildPackage,python3-gevent-src))\r