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
/ee
/6a
/cd78737dd990297205943cc4dcad3d3c502807fd2c5b18c5f33dc90ca214
16 PKG_HASH
:=29630b9064a82e04d8242ea01d7c93d70ec320f5e3ed48e95fcabc6b1d0f6c76
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
))