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.

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