python-service-identity: update to 17.0.0, add python3 variant
[feed/packages.git] / lang / python / python-service-identity / Makefile
1 #
2 # Copyright (C) 2016-2018 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-service-identity
11 PKG_VERSION:=17.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=service_identity-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/de/2a/cab6e30be82c8fcd2339ef618036720eda954cf05daef514e386661c9221
16 PKG_HASH:=4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-service-identity-$(PKG_VERSION)
19
20 PKG_LICENSE:=MIT
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
23
24 include $(INCLUDE_DIR)/package.mk
25 include ../python-package.mk
26 include ../python3-package.mk
27
28 PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
29
30 define Package/python-service-identity/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 URL:=https://github.com/pyca/service_identity
35 endef
36
37 define Package/python-service-identity
38 $(call Package/python-service-identity/Default)
39 TITLE:=python-service-identity
40 DEPENDS:= \
41 +PACKAGE_python-service-identity:python-light \
42 +PACKAGE_python-service-identity:python-attrs \
43 +PACKAGE_python-service-identity:python-pyasn1 \
44 +PACKAGE_python-service-identity:python-pyasn1-modules \
45 +PACKAGE_python-service-identity:python-pyopenssl
46 VARIANT:=python
47 endef
48
49 define Package/python3-service-identity
50 $(call Package/python-service-identity/Default)
51 TITLE:=python3-service-identity
52 DEPENDS:= \
53 +PACKAGE_python3-service-identity:python3-light \
54 +PACKAGE_python3-service-identity:python3-attrs \
55 +PACKAGE_python3-service-identity:python3-pyasn1 \
56 +PACKAGE_python3-service-identity:python3-pyasn1-modules \
57 +PACKAGE_python3-service-identity:python3-pyopenssl
58 VARIANT:=python3
59 endef
60
61 define Package/python-service-identity/description
62 service_identity aspires to give you all the tools you need for
63 verifying whether a certificate is valid for the intended purposes.
64 endef
65
66 define Package/python3-service-identity/description
67 $(call Package/python-service-identity/description)
68 .
69 (Variant for Python3)
70 endef
71
72 $(eval $(call PyPackage,python-service-identity))
73 $(eval $(call BuildPackage,python-service-identity))
74
75 $(eval $(call Py3Package,python3-service-identity))
76 $(eval $(call BuildPackage,python3-service-identity))