python-pyopenssl: update to version 17.3.0
[feed/packages.git] / lang / python / python-pyopenssl / Makefile
1 #
2 # Copyright (C) 2015-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:=pyOpenSSL
11 PKG_VERSION:=17.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/ee/6a/cd78737dd990297205943cc4dcad3d3c502807fd2c5b18c5f33dc90ca214
16 PKG_HASH:=29630b9064a82e04d8242ea01d7c93d70ec320f5e3ed48e95fcabc6b1d0f6c76
17
18 PKG_LICENSE:=Apache-2.0
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyopenssl-$(PKG_VERSION)
23
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
26 $(call include_mk, 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-pyopenssl/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 URL:=https://github.com/pyca/pyopenssl
35 endef
36
37 define Package/python-pyopenssl
38 $(call Package/python-pyopenssl/Default)
39 TITLE:=python-pyopenssl
40 VARIANT:=python
41 DEPENDS:= \
42 +PACKAGE_python-pyopenssl:python-light \
43 +PACKAGE_python-pyopenssl:python-cryptography \
44 +PACKAGE_python-pyopenssl:python-six
45 endef
46
47 define Package/python3-pyopenssl
48 $(call Package/python-pyopenssl/Default)
49 TITLE:=python3-pyopenssl
50 VARIANT:=python3
51 DEPENDS:= \
52 +PACKAGE_python3-pyopenssl:python3-light \
53 +PACKAGE_python3-pyopenssl:python3-cryptography \
54 +PACKAGE_python3-pyopenssl:python3-six
55 endef
56
57 define Package/python-pyopenssl/description
58 Python wrapper module around the OpenSSL library
59 endef
60
61 define Package/python3-pyopenssl/description
62 $(call Package/python-pyopenssl/description)
63 .
64 (Variant for Python3).
65 endef
66
67 $(eval $(call PyPackage,python-pyopenssl))
68 $(eval $(call BuildPackage,python-pyopenssl))
69 $(eval $(call Py3Package,python3-pyopenssl))
70 $(eval $(call BuildPackage,python3-pyopenssl))