2 # Copyright (C) 2007-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-urllib3
15 PKG_LICENSE_FILES
:=LICENSE.txt
16 PKG_CPE_ID
:=cpe
:/a
:urllib3_project
:urllib3
18 PKG_SOURCE
:=urllib3-
$(PKG_VERSION
).
tar.gz
19 PKG_SOURCE_URL
:=https
://files.pythonhosted.org
/packages
/source
/u
/urllib3
20 PKG_HASH
:=f03eeb431c77b88cf8747d47e94233a91d0e0fdae1cf09e0b21405a885700266
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-urllib3-
$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
25 include ..
/python-package.mk
26 include ..
/python3-package.mk
28 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
30 define Package
/python-urllib3
/Default
34 TITLE
:=Sanity-friendly HTTP client
35 URL
:=https
://urllib3.readthedocs.io
/
38 define Package
/python-urllib3
39 $(call Package
/python-urllib3
/Default
)
40 DEPENDS
:=+PACKAGE_python-urllib3
:python
44 define Package
/python-urllib3
/description
45 HTTP library with thread-safe connection pooling
, file post
, and more.
48 define Package
/python3-urllib3
49 $(call Package
/python-urllib3
/Default
)
50 DEPENDS
:=+PACKAGE_python3-urllib3
:python3
54 define Package
/python3-urllib3
/description
55 $(call Package
/python-urllib3
/description
)
60 $(eval
$(call PyPackage
,python-urllib3
))
61 $(eval
$(call BuildPackage
,python-urllib3
))
62 $(eval
$(call BuildPackage
,python-urllib3-src
))
64 $(eval
$(call Py3Package
,python3-urllib3
))
65 $(eval
$(call BuildPackage
,python3-urllib3
))
66 $(eval
$(call BuildPackage
,python3-urllib3-src
))