summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Kogut <joseph.kogut@gmail.com>2017-11-03 22:25:33 (GMT)
committerPeter Korsgaard <peter@korsgaard.com>2017-11-04 09:31:58 (GMT)
commit2abe371c53b45f845fb78eee882a1099c610eae3 (patch)
treee25fcb4ea1e01e006ec471833b7babcc4688860c
parent138a082def7aeb553ba1b8d731a0500727f56424 (diff)
downloadbuildroot-2abe371c53b45f845fb78eee882a1099c610eae3.tar.gz
buildroot-2abe371c53b45f845fb78eee882a1099c610eae3.tar.bz2
python-websockets: new package
[Peter: add license hash, fix Config.in, correct license as pointed out by Yegor] Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--DEVELOPERS3
-rw-r--r--package/Config.in1
-rw-r--r--package/python-websockets/Config.in9
-rw-r--r--package/python-websockets/python-websockets.hash4
-rw-r--r--package/python-websockets/python-websockets.mk14
5 files changed, 31 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index 49fa789..c651bf2 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -787,6 +787,9 @@ F: package/pdbg/
F: board/qemu/ppc64le-pseries/
F: configs/qemu_ppc64le_pseries_defconfig
+N: Joseph Kogut <joseph.kogut@gmail.com>
+F: package/python-websockets/
+
N: Johan Derycke <johanderycke@gmail.com>
F: package/python-libconfig/
diff --git a/package/Config.in b/package/Config.in
index 28444f6..fe5ccc4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -920,6 +920,7 @@ menu "External python modules"
source "package/python-wcwidth/Config.in"
source "package/python-web2py/Config.in"
source "package/python-webpy/Config.in"
+ source "package/python-websockets/Config.in"
source "package/python-werkzeug/Config.in"
source "package/python-whoosh/Config.in"
source "package/python-ws4py/Config.in"
diff --git a/package/python-websockets/Config.in b/package/python-websockets/Config.in
new file mode 100644
index 0000000..7d80161
--- /dev/null
+++ b/package/python-websockets/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_WEBSOCKETS
+ bool "python-websockets"
+ depends on BR2_PACKAGE_PYTHON3
+ select BR2_PACKAGE_PYTHON3_ZLIB
+ select BR2_PACKAGE_PYTHON3_SSL
+ help
+ An implementation of the WebSocket Protocol (RFC 6455)
+
+ https://github.com/aaugustin/websockets
diff --git a/package/python-websockets/python-websockets.hash b/package/python-websockets/python-websockets.hash
new file mode 100644
index 0000000..18947cc
--- /dev/null
+++ b/package/python-websockets/python-websockets.hash
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/websockets/json, sha256 locally computed
+md5 9e8c6b3c70def4146d75fbb0f52bdfc7 websockets-4.0.1.tar.gz
+sha256 da4d4fbe059b0453e726d6d993760065d69b823a27efc3040402a6fcfe6a1ed9 websockets-4.0.1.tar.gz
+sha256 2cd4d416e432ca7fda2c103b38b852f8d3cb327d70c3db44410b9fe97e6c4d73 LICENSE
diff --git a/package/python-websockets/python-websockets.mk b/package/python-websockets/python-websockets.mk
new file mode 100644
index 0000000..7c5cf8c
--- /dev/null
+++ b/package/python-websockets/python-websockets.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-websockets
+#
+################################################################################
+
+PYTHON_WEBSOCKETS_VERSION = 4.0.1
+PYTHON_WEBSOCKETS_SOURCE = websockets-${PYTHON_WEBSOCKETS_VERSION}.tar.gz
+PYTHON_WEBSOCKETS_SITE = https://pypi.python.org/packages/b6/12/6194aac840c65253e45a38912e318f9ac548f9ba86d75bdb8fe66841b335
+PYTHON_WEBSOCKETS_SETUP_TYPE = setuptools
+PYTHON_WEBSOCKETS_LICENSE = BSD-3-Clause
+PYTHON_WEBSOCKETS_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))