python-requests: add hostbuild
authorAustin Lane <vidplace7@gmail.com>
Thu, 5 Dec 2024 05:49:19 +0000 (00:49 -0500)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 12 Dec 2024 07:53:12 +0000 (09:53 +0200)
Signed-off-by: Austin Lane <vidplace7@gmail.com>
lang/python/python-requests/Makefile

index cd961448cce8fb4e3fe546c2cd90211ab7cf5dee..da8b2560f0c1d8725c6a3c4f6c2816dd4e11ab06 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-requests
 PKG_VERSION:=2.32.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=Apache-2.0
@@ -19,9 +19,17 @@ PKG_CPE_ID:=cpe:/a:python:requests
 PYPI_NAME:=requests
 PKG_HASH:=55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760
 
+HOST_BUILD_DEPENDS:= \
+  python-chardet/host \
+  python-idna/host \
+  python-urllib3/host \
+  python-certifi/host
+
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
 include ../python3-package.mk
+include ../python3-host-build.mk
 
 define Package/python3-requests
   SUBMENU:=Python
@@ -44,3 +52,4 @@ endef
 $(eval $(call Py3Package,python3-requests))
 $(eval $(call BuildPackage,python3-requests))
 $(eval $(call BuildPackage,python3-requests-src))
+$(eval $(call HostBuild))