udptunnel: new package
[feed/packages.git] / lang / python / python-certifi / Makefile
1 #
2 # Copyright (C) 2007-2016 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-certifi
11 PKG_VERSION:=2018.11.29
12 PKG_RELEASE:=1
13 PKG_LICENSE:=MPL-2.0
14
15 PKG_SOURCE:=certifi-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/certifi
17 PKG_HASH:=47f9c83ef4c0c621eaef743f133f09fa8a74a9b75f037e8624f83bd1b6626cb7
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-certifi-$(PKG_VERSION)
19 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../python-package.mk
23 include ../python3-package.mk
24
25 define Package/python-certifi/Default
26 SUBMENU:=Python
27 SECTION:=lang
28 CATEGORY:=Languages
29 MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
30 TITLE:=Python package for providing Mozilla's CA Bundle.
31 URL:=http://certifi.io/
32 endef
33
34 define Package/python-certifi
35 $(call Package/python-certifi/Default)
36 DEPENDS:=+PACKAGE_python-certifi:python-light
37 VARIANT:=python
38 endef
39
40 define Package/python3-certifi
41 $(call Package/python-certifi/Default)
42 DEPENDS:=+PACKAGE_python3-certifi:python3-light
43 VARIANT:=python3
44 endef
45
46 define Package/python-certifi/description
47 Certifi is a carefully curated collection of Root Certificates for validating the
48 trustworthiness of SSL certificates while verifying the identity of TLS hosts.
49 endef
50
51 define Package/python3-certifi/description
52 $(call Package/python-certifi/description)
53 .
54 (Variant for Python3)
55 endef
56
57 $(eval $(call PyPackage,python-certifi))
58 $(eval $(call BuildPackage,python-certifi))
59 $(eval $(call BuildPackage,python-certifi-src))
60
61 $(eval $(call Py3Package,python3-certifi))
62 $(eval $(call BuildPackage,python3-certifi))
63 $(eval $(call BuildPackage,python3-certifi-src))