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.

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