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.

63 lines
1.5 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.6
  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. PYPI_NAME:=urllib3
  16. PKG_HASH:=9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  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))