b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-urllib3 |
| 11 | PKG_VERSION:=2.0.4 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> |
| 15 | PKG_LICENSE:=MIT |
| 16 | PKG_LICENSE_FILES:=LICENSE.txt |
| 17 | PKG_CPE_ID:=cpe:/a:python:urllib3 |
| 18 | |
| 19 | PYPI_NAME:=urllib3 |
| 20 | PKG_HASH:=8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11 |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=python-hatchling/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include ../python3-package.mk |
| 27 | |
| 28 | define Package/python3-urllib3 |
| 29 | SUBMENU:=Python |
| 30 | SECTION:=lang |
| 31 | CATEGORY:=Languages |
| 32 | TITLE:=Sanity-friendly HTTP client |
| 33 | URL:=https://urllib3.readthedocs.io/ |
| 34 | DEPENDS:=+python3 |
| 35 | endef |
| 36 | |
| 37 | define Package/python3-urllib3/description |
| 38 | HTTP library with thread-safe connection pooling, file post, and more. |
| 39 | endef |
| 40 | |
| 41 | $(eval $(call Py3Package,python3-urllib3)) |
| 42 | $(eval $(call BuildPackage,python3-urllib3)) |
| 43 | $(eval $(call BuildPackage,python3-urllib3-src)) |