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.

66 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2007-2017 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-urllib3
  9. PKG_VERSION:=1.25
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE.txt
  13. PKG_CPE_ID:=cpe:/a:urllib3_project:urllib3
  14. PKG_SOURCE:=urllib3-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/u/urllib3
  16. PKG_HASH:=f03eeb431c77b88cf8747d47e94233a91d0e0fdae1cf09e0b21405a885700266
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-urllib3-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-urllib3/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Sanity-friendly HTTP client
  27. URL:=https://urllib3.readthedocs.io/
  28. endef
  29. define Package/python-urllib3
  30. $(call Package/python-urllib3/Default)
  31. DEPENDS:=+PACKAGE_python-urllib3:python
  32. VARIANT:=python
  33. endef
  34. define Package/python-urllib3/description
  35. HTTP library with thread-safe connection pooling, file post, and more.
  36. endef
  37. define Package/python3-urllib3
  38. $(call Package/python-urllib3/Default)
  39. DEPENDS:=+PACKAGE_python3-urllib3:python3
  40. VARIANT:=python3
  41. endef
  42. define Package/python3-urllib3/description
  43. $(call Package/python-urllib3/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. $(eval $(call PyPackage,python-urllib3))
  48. $(eval $(call BuildPackage,python-urllib3))
  49. $(eval $(call BuildPackage,python-urllib3-src))
  50. $(eval $(call Py3Package,python3-urllib3))
  51. $(eval $(call BuildPackage,python3-urllib3))
  52. $(eval $(call BuildPackage,python3-urllib3-src))