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.

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