python-h2: new package
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 5 Jul 2017 13:47:41 +0000 (15:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 31 Jul 2017 19:31:01 +0000 (21:31 +0200)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-h2/Config.in [new file with mode: 0644]
package/python-h2/python-h2.hash [new file with mode: 0644]
package/python-h2/python-h2.mk [new file with mode: 0644]

index 87b61a8572650281d75e8f349f6321fe483fd1ae..d595e88b1265982c3b2a4b8bbfc4a96b85e9f57f 100644 (file)
@@ -741,6 +741,7 @@ menu "External python modules"
        source "package/python-futures/Config.in"
        source "package/python-gobject/Config.in"
        source "package/python-gunicorn/Config.in"
+       source "package/python-h2/Config.in"
        source "package/python-hpack/Config.in"
        source "package/python-html5lib/Config.in"
        source "package/python-httplib2/Config.in"
diff --git a/package/python-h2/Config.in b/package/python-h2/Config.in
new file mode 100644 (file)
index 0000000..dccee9b
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_H2
+       bool "python-h2"
+       select BR2_PACKAGE_PYTHON_HYPERFRAME # runtime
+       select BR2_PACKAGE_PYTHON_HPACK # runtime
+       help
+         HTTP/2 State-Machine based protocol implementation.
+
+         http://hyper.rtfd.org
diff --git a/package/python-h2/python-h2.hash b/package/python-h2/python-h2.hash
new file mode 100644 (file)
index 0000000..e34f7be
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/h2/json, sha256 locally computed
+md5    586686662928c2851eb0f1fe99bf279d  h2-3.0.1.tar.gz
+sha256 b2962f883fa392a23cbfcc4ad03c335bcc661be0cf9627657b589f0df2206e64  h2-3.0.1.tar.gz
diff --git a/package/python-h2/python-h2.mk b/package/python-h2/python-h2.mk
new file mode 100644 (file)
index 0000000..37f0156
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-h2
+#
+################################################################################
+
+PYTHON_H2_VERSION = 3.0.1
+PYTHON_H2_SOURCE = h2-$(PYTHON_H2_VERSION).tar.gz
+PYTHON_H2_SITE = https://pypi.python.org/packages/3c/86/aebb88df3c87255cfd0ffd338608fbfb34d1c850750a486e7f05b013e5a3
+PYTHON_H2_SETUP_TYPE = setuptools
+PYTHON_H2_LICENSE = MIT
+PYTHON_H2_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))