You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-2019 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-requests
  9. PKG_VERSION:=2.23.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>, Alexandru Ardelean <ardeleanalex@gmail.com>
  12. PKG_LICENSE:=Apache-2.0
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_CPE_ID:=cpe:/a:python-requests:requests
  15. PYPI_NAME:=requests
  16. PKG_HASH:=b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/python-requests/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=HTTP library for Python
  25. URL:=https://2.python-requests.org/
  26. endef
  27. define Package/python3-requests
  28. $(call Package/python-requests/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python3-requests:python3-light \
  31. +PACKAGE_python3-requests:python3-chardet \
  32. +PACKAGE_python3-requests:python3-idna \
  33. +PACKAGE_python3-requests:python3-urllib3 \
  34. +PACKAGE_python3-requests:python3-certifi
  35. VARIANT:=python3
  36. endef
  37. define Package/python3-requests/description
  38. Requests is the only Non-GMO HTTP library for Python, safe for human consumption
  39. .
  40. (Variant for Python3)
  41. endef
  42. $(eval $(call Py3Package,python3-requests))
  43. $(eval $(call BuildPackage,python3-requests))
  44. $(eval $(call BuildPackage,python3-requests-src))