summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-23 15:47:13 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-23 17:09:42 +0100
commit7d6957b37d58d2b71c3cb514443b3f16249e6def (patch)
tree8350e3ffb390ba6670b600f245fcbf1da709d1b8 /gnu/packages/python-web.scm
parent08b79ad3d899b798e88602118f9ba1890c41b57d (diff)
gnu: python-trio-websocket: Move to python-web.
* gnu/packages/python-xyz.scm (python-trio-websocket): Move from here ... * gnu/packages/python-web.scm: ... to here. Change-Id: Ifffadaa04808a64dc443b912a8bccfd4c7dcb8dd
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2b3dafe9b05..74c25af1dee 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3930,6 +3930,41 @@ high-speed transfers via libcurl and frequently outperforms alternatives.")
;; under the terms of LGPLv2.1+ or Expat.
(license (list license:lgpl2.1+ license:expat))))
+(define-public python-trio-websocket
+ (package
+ (name "python-trio-websocket")
+ (version "0.12.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/HyperionGray/trio-websocket")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1lm712gakpskcn3adna22kj8m1hspz9l68pmlziklr0ycphmyqac"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-pytest-trio
+ python-setuptools
+ python-trustme))
+ (propagated-inputs
+ (list python-outcome
+ python-trio
+ python-wsproto))
+ (home-page "https://github.com/HyperionGray/trio-websocket")
+ (synopsis "WebSocket library for Trio")
+ (description "This library implements both server and client aspects of
+the @url{https://tools.ietf.org/html/rfc6455, the WebSocket protocol},
+striving for safety, correctness, and ergonomics. It is based on the
+@url{https://wsproto.readthedocs.io/en/latest/, wsproto project}, which is a
+@url{https://sans-io.readthedocs.io/, Sans-IO} state machine that implements
+the majority of the WebSocket protocol, including framing, codecs, and events.
+This library handles I/O using @url{https://trio.readthedocs.io/en/latest/,
+the Trio framework}.")
+ (license license:expat)))
+
(define-public python-txacme
;; 0.9.3 tag was placed in 2020 and there a lot of changes providing
;; compatibility wit twisted, use the latest commit from trunk branch.