2 # Copyright (C) 2015-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
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
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
>
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-pyopenssl-
$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
25 $(call include_mk
, python-package.mk
)
26 $(call include_mk
, python3-package.mk
)
28 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
30 define Package
/python-pyopenssl
/Default
34 URL
:=https
://github.com
/pyca
/pyopenssl
37 define Package
/python-pyopenssl
38 $(call Package
/python-pyopenssl
/Default
)
39 TITLE
:=python-pyopenssl
42 +PACKAGE_python-pyopenssl
:python-light \
43 +PACKAGE_python-pyopenssl
:python-cryptography \
44 +PACKAGE_python-pyopenssl
:python-six
47 define Package
/python3-pyopenssl
48 $(call Package
/python-pyopenssl
/Default
)
49 TITLE
:=python3-pyopenssl
52 +PACKAGE_python3-pyopenssl
:python3-light \
53 +PACKAGE_python3-pyopenssl
:python3-cryptography \
54 +PACKAGE_python3-pyopenssl
:python3-six
57 define Package
/python-pyopenssl
/description
58 Python wrapper module around the OpenSSL library
61 define Package
/python3-pyopenssl
/description
62 $(call Package
/python-pyopenssl
/description
)
64 (Variant for Python3
).
67 $(eval
$(call PyPackage
,python-pyopenssl
))
68 $(eval
$(call BuildPackage
,python-pyopenssl
))
69 $(eval
$(call Py3Package
,python3-pyopenssl
))
70 $(eval
$(call BuildPackage
,python3-pyopenssl
))