From: Matthias Fend <matthias.fend@emfend.at>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] python3-websocket-client: new package
Date: Tue, 19 Oct 2021 13:50:49 +0200 [thread overview]
Message-ID: <20211019115049.3618088-1-matthias.fend@emfend.at> (raw)
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>
---
rules/python3-websocket-client.in | 12 +++++++
rules/python3-websocket-client.make | 52 +++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
create mode 100644 rules/python3-websocket-client.in
create mode 100644 rules/python3-websocket-client.make
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
--
2.25.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next reply other threads:[~2021-10-19 11:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 11:50 Matthias Fend [this message]
2021-10-26 9:09 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211019115049.3618088-1-matthias.fend@emfend.at \
--to=matthias.fend@emfend.at \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox