python-pyopenssl: new package
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 8 Feb 2016 09:04:22 +0000 (10:04 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Feb 2016 22:14:29 +0000 (23:14 +0100)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-pyopenssl/Config.in [new file with mode: 0644]
package/python-pyopenssl/python-pyopenssl.hash [new file with mode: 0644]
package/python-pyopenssl/python-pyopenssl.mk [new file with mode: 0644]

index c92e925774e2c3fb417a8daf5b848d1eb4e82578..8637096f5a105b7514a1d6ce8f67c7ce317f59c1 100644 (file)
@@ -689,6 +689,7 @@ menu "External python modules"
        source "package/python-pygame/Config.in"
        source "package/python-pygments/Config.in"
        source "package/python-pyinotify/Config.in"
+       source "package/python-pyopenssl/Config.in"
        source "package/python-pyparsing/Config.in"
        source "package/python-pyparted/Config.in"
        source "package/python-pypcap/Config.in"
diff --git a/package/python-pyopenssl/Config.in b/package/python-pyopenssl/Config.in
new file mode 100644 (file)
index 0000000..c32e211
--- /dev/null
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_PYOPENSSL
+       bool "python-pyopenssl"
+       depends on BR2_INSTALL_LIBSTDCPP # python-cryptography
+       select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
+       select BR2_PACKAGE_PYTHON_SIX # runtime
+       help
+         Python wrapper module around the OpenSSL library.
+
+         https://github.com/pyca/pyopenssl
+
+comment "python-pyopenssl needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-pyopenssl/python-pyopenssl.hash b/package/python-pyopenssl/python-pyopenssl.hash
new file mode 100644 (file)
index 0000000..0c6e25a
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f447644afcbd5f0a1f47350fec63a4c6, sha256 locally computed
+md5     f447644afcbd5f0a1f47350fec63a4c6  pyOpenSSL-0.15.1.tar.gz
+sha256  f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672  pyOpenSSL-0.15.1.tar.gz
diff --git a/package/python-pyopenssl/python-pyopenssl.mk b/package/python-pyopenssl/python-pyopenssl.mk
new file mode 100644 (file)
index 0000000..239fd98
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pyopenssl
+#
+################################################################################
+
+PYTHON_PYOPENSSL_VERSION = 0.15.1
+PYTHON_PYOPENSSL_SOURCE = pyOpenSSL-$(PYTHON_PYOPENSSL_VERSION).tar.gz
+PYTHON_PYOPENSSL_SITE = https://pypi.python.org/packages/source/p/pyOpenSSL
+PYTHON_PYOPENSSL_LICENSE = Apache-2.0
+PYTHON_PYOPENSSL_LICENSE_FILES = LICENSE
+PYTHON_PYOPENSSL_SETUP_TYPE = setuptools
+
+$(eval $(python-package))