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.

73 lines
2.0 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.22.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:=11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. define Package/python-requests/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=HTTP library for Python
  26. URL:=https://2.python-requests.org/
  27. endef
  28. define Package/python-requests
  29. $(call Package/python-requests/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python-requests:python \
  32. +PACKAGE_python-requests:python-chardet \
  33. +PACKAGE_python-requests:python-idna \
  34. +PACKAGE_python-requests:python-urllib3 \
  35. +PACKAGE_python-requests:python-certifi
  36. VARIANT:=python
  37. endef
  38. define Package/python3-requests
  39. $(call Package/python-requests/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-requests:python3-light \
  42. +PACKAGE_python3-requests:python3-chardet \
  43. +PACKAGE_python3-requests:python3-idna \
  44. +PACKAGE_python3-requests:python3-urllib3 \
  45. +PACKAGE_python3-requests:python3-certifi
  46. VARIANT:=python3
  47. endef
  48. define Package/python-requests/description
  49. Requests is the only Non-GMO HTTP library for Python, safe for human consumption
  50. endef
  51. define Package/python3-requests/description
  52. $(call Package/python-requests/description)
  53. .
  54. (Variant for Python3)
  55. endef
  56. $(eval $(call PyPackage,python-requests))
  57. $(eval $(call BuildPackage,python-requests))
  58. $(eval $(call BuildPackage,python-requests-src))
  59. $(eval $(call Py3Package,python3-requests))
  60. $(eval $(call BuildPackage,python3-requests))
  61. $(eval $(call BuildPackage,python3-requests-src))