summaryrefslogtreecommitdiff
path: root/lang/python/python-pycares/Makefile
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2022-08-28 20:59:42 +0300
committerGitHub <noreply@github.com>2022-08-28 20:59:42 +0300
commit552def06375ddcabde3a40009aefa72cc1ea46df (patch)
treed1c214b8168141a272a8d9d095ff9f7e690355ed /lang/python/python-pycares/Makefile
parent89c2fa9d9b5cd8f6e1cf9859965de04b3707fa5a (diff)
parent90ef79afd8c4ad73b3c8a20539eaab66d4b372c2 (diff)
Merge pull request #19238 from dynasticorpheus/pycares
python-pycares: add new package
Diffstat (limited to 'lang/python/python-pycares/Makefile')
-rw-r--r--lang/python/python-pycares/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/lang/python/python-pycares/Makefile b/lang/python/python-pycares/Makefile
new file mode 100644
index 000000000..4e75cf6ae
--- /dev/null
+++ b/lang/python/python-pycares/Makefile
@@ -0,0 +1,38 @@
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-pycares
+PKG_VERSION:=4.2.2
+PKG_RELEASE:=$(AUTORELEASE)
+
+PYPI_NAME:=pycares
+PKG_HASH:=e1f57a8004370080694bd6fb969a1ffc9171a59c6824d54f791c1b2e4d298385
+
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+PKG_MAINTAINER:=Fabian Lipken <dynasticorpheus@gmail.com>
+
+PKG_BUILD_DEPENDS:=libffi/host
+
+HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:=cffi # cffi>=1.5.0
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-pycares
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=Python interface for c-ares
+ URL:=https://github.com/saghul/pycares
+ DEPENDS:=+python3-light +python3-cffi
+endef
+
+define Package/python3-pycares/description
+Python interface for c-ares
+endef
+
+$(eval $(call Py3Package,python3-pycares))
+$(eval $(call BuildPackage,python3-pycares))
+$(eval $(call BuildPackage,python3-pycares-src))