summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2025-01-12 21:02:18 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:37:46 +0100
commitc15345c1f1f4fbd73541b731b5aad068af58c62f (patch)
tree055a8e51a507c6554893d2dfe229dd9fb5cf2636 /gnu/packages/python-web.scm
parentce87b1333b8abeca95da0828038a9c7d6aee0860 (diff)
gnu: Add python-simple-websocket.
* gnu/packages/python-web.scm (python-simple-websocket): New variable. Change-Id: Ie17eb20ad72db6331c037c52215e753f1248d144
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 61ee84f5c2..a5f1163b40 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8555,6 +8555,33 @@ through the network, it only deals with the implementation details of the
SOCKS protocols. It can be paired with any I/O library.")
(license license:expat)))
+(define-public python-simple-websocket
+ (package
+ (name "python-simple-websocket")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "simple_websocket" version))
+ (sha256
+ (base32 "1r1all55d5dimiw3qwdhj53cxj9yjgnskcysmcscarx0g9726fbr"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; Requires Internet access to resolve example.com
+ (list #:test-flags '(list "--ignore=tests/test_client.py")))
+ (propagated-inputs (list python-wsproto))
+ (native-inputs (list python-flake8
+ python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-tox
+ python-wheel))
+ (home-page "https://github.com/miguelgrinberg/simple-websocket")
+ (synopsis "Simple WebSocket server and client for Python")
+ (description "This package provides a simple @code{WebSocket} server and
+client for Python.")
+ (license license:expat)))
+
(define-public python-siosocks
(package
(name "python-siosocks")