package: add python-backports-ssl-match-hostname
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 9 Mar 2018 19:16:54 +0000 (20:16 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 10 Mar 2018 07:31:11 +0000 (08:31 +0100)
The ssl.match_hostname() function from Python 3.5.

This function IS available in python 2.7 since 2.7.9, but it doesn't support
matching on IP addresses which is needed for some use cases.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/python-backports-ssl-match-hostname/Config.in [new file with mode: 0644]
package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.hash [new file with mode: 0644]
package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.mk [new file with mode: 0644]

index c13bb448f54b44ba1ec8b90cc96a9c3f10d3c4dd..14f12e36ec87d9803963ae9eab580b8031f993d8 100644 (file)
@@ -1385,6 +1385,7 @@ F:        package/lzop/
 F:     package/memtool/
 F:     package/mosquitto/
 F:     package/python-alsaaudio/
+F:     package/python-backports-ssl-match-hostname/
 F:     package/python-docker-pycreds/
 F:     package/python-enum/
 F:     package/python-enum34/
index 9c727cad6c23b9436a17c05aec2cb18d0870a3a1..d3018aee474e605f556bb52acfc3e3922f5179df 100644 (file)
@@ -732,6 +732,7 @@ menu "External python modules"
        source "package/python-babel/Config.in"
        source "package/python-backports-abc/Config.in"
        source "package/python-backports-shutil-get-terminal-size/Config.in"
+       source "package/python-backports-ssl-match-hostname/Config.in"
        source "package/python-bcrypt/Config.in"
        source "package/python-beautifulsoup4/Config.in"
        source "package/python-bitstring/Config.in"
diff --git a/package/python-backports-ssl-match-hostname/Config.in b/package/python-backports-ssl-match-hostname/Config.in
new file mode 100644 (file)
index 0000000..8e55191
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME
+       bool "python-backports-ssl-match-hostname"
+       depends on BR2_PACKAGE_PYTHON
+       help
+         The ssl.match_hostname() function from Python 3.5.
+
+         http://bitbucket.org/brandon/backports.ssl_match_hostname
diff --git a/package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.hash b/package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.hash
new file mode 100644 (file)
index 0000000..b43e1af
--- /dev/null
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/backports.ssl_match_hostname/json, sha256 locally computed
+md5    c03fc5e2c7b3da46b81acf5cbacfe1e6  backports.ssl_match_hostname-3.5.0.1.tar.gz
+sha256 502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2  backports.ssl_match_hostname-3.5.0.1.tar.gz
+sha256 bfc8a75a4b9aec224aa7973c0c9d7cc0134bdcbf8eefd008936b58554d66e97e  backports/ssl_match_hostname/LICENSE.txt
diff --git a/package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.mk b/package/python-backports-ssl-match-hostname/python-backports-ssl-match-hostname.mk
new file mode 100644 (file)
index 0000000..01c8bc4
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-backports-ssl-match-hostname
+#
+################################################################################
+
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_VERSION = 3.5.0.1
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_SOURCE = backports.ssl_match_hostname-$(PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_VERSION).tar.gz
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_SITE = https://pypi.python.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_SETUP_TYPE = distutils
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_LICENSE = Python-2.0
+PYTHON_BACKPORTS_SSL_MATCH_HOSTNAME_LICENSE_FILES = backports/ssl_match_hostname/LICENSE.txt
+
+$(eval $(python-package))