c16bc57dc3c6e687c904da5938ca3708b018cdec
[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.2.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/b0/9e/7088f6165c40c46416aff434eb806c1d64ad6ec6dbc201f5ad4d0484704e
16 PKG_HASH:=5d617ce36b07c51f330aa63b83bf7f25c40a0e95958876d54d1982f8c91b4834
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))