diff options
author | Matthias Fend <matthias.fend@emfend.at> | 2021-10-19 13:50:49 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-10-25 16:57:03 +0200 |
commit | 30330aa36e00e830a0027e47c080c23c7400bddc (patch) | |
tree | 7807a32d9e0f3d4e1f86e57e702bb6a30411696f | |
parent | 452b98d8451a9eec16ab1339a271df14ee928750 (diff) | |
download | ptxdist-30330aa36e00e830a0027e47c080c23c7400bddc.tar.gz ptxdist-30330aa36e00e830a0027e47c080c23c7400bddc.tar.xz |
python3-websocket-client: new package
A WebSocket client for Python. It provides access to low level APIs for
WebSockets. websocket-client implements version hybi-13 of the WebSocket
protocol. This client does not currently support the permessage-deflate
extension from RFC 7692.
Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
Message-Id: <20211019115049.3618088-1-matthias.fend@emfend.at>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/python3-websocket-client.in | 12 | ||||
-rw-r--r-- | rules/python3-websocket-client.make | 52 |
2 files changed, 64 insertions, 0 deletions
diff --git a/rules/python3-websocket-client.in b/rules/python3-websocket-client.in new file mode 100644 index 000000000..a4da32f81 --- /dev/null +++ b/rules/python3-websocket-client.in @@ -0,0 +1,12 @@ +## SECTION=python3 + +config PYTHON3_WEBSOCKET_CLIENT + tristate + select PYTHON3 + select PYTHON3_SSL + prompt "python3-websocket-client" + help + A WebSocket client for Python. It provides access to low level + APIs for WebSockets. websocket-client implements version hybi-13 + of the WebSocket protocol. This client does not currently support + the permessage-deflate extension from RFC 7692. diff --git a/rules/python3-websocket-client.make b/rules/python3-websocket-client.make new file mode 100644 index 000000000..b7acafe16 --- /dev/null +++ b/rules/python3-websocket-client.make @@ -0,0 +1,52 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Matthias Fend <matthias.fend@emfend.at> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PYTHON3_WEBSOCKET_CLIENT) += python3-websocket-client + +# +# Paths and names +# +PYTHON3_WEBSOCKET_CLIENT_VERSION := 1.2.1 +PYTHON3_WEBSOCKET_CLIENT_MD5 := a043b9a04dc10a7c9f333cf55f6222df +PYTHON3_WEBSOCKET_CLIENT := websocket-client-$(PYTHON3_WEBSOCKET_CLIENT_VERSION) +PYTHON3_WEBSOCKET_CLIENT_SUFFIX := tar.gz +PYTHON3_WEBSOCKET_CLIENT_URL := $(call ptx/mirror-pypi, websocket-client, $(PYTHON3_WEBSOCKET_CLIENT).$(PYTHON3_WEBSOCKET_CLIENT_SUFFIX)) +PYTHON3_WEBSOCKET_CLIENT_SOURCE := $(SRCDIR)/$(PYTHON3_WEBSOCKET_CLIENT).$(PYTHON3_WEBSOCKET_CLIENT_SUFFIX) +PYTHON3_WEBSOCKET_CLIENT_DIR := $(BUILDDIR)/$(PYTHON3_WEBSOCKET_CLIENT) +PYTHON3_WEBSOCKET_CLIENT_LICENSE := Apache-2.0 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_WEBSOCKET_CLIENT_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-websocket-client.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-websocket-client) + @$(call install_fixup, python3-websocket-client, PRIORITY, optional) + @$(call install_fixup, python3-websocket-client, SECTION, base) + @$(call install_fixup, python3-websocket-client, AUTHOR, "Matthias Fend <matthias.fend@emfend.at>") + @$(call install_fixup, python3-websocket-client, DESCRIPTION, missing) + + @$(call install_glob, python3-websocket-client, 0, 0, -, \ + $(PYTHON3_SITEPACKAGES),, *.py) + + @$(call install_finish, python3-websocket-client) + + @$(call touch) + +# vim: syntax=make |