diff options
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 73 |
1 files changed, 65 insertions, 8 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4aec58282a..016ac6a1da 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2717,9 +2717,7 @@ files.") (list python-greenlet python-pytest python-pytest-httpbin - python-readme-renderer python-setuptools - python-twine python-werkzeug)) (propagated-inputs (list python-requests)) (home-page "https://github.com/ross/requests-futures") @@ -3932,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. @@ -4813,8 +4846,8 @@ WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can utilise asyncio, uvloop, or trio worker types.") (license license:expat))) -(define-public python-hypercorn - (deprecated-package "python-hypercorn" hypercorn)) +(define-deprecated-package python-hypercorn + hypercorn) (define-public python-querystring-parser (package @@ -6132,8 +6165,8 @@ python-requests.") HTTP via a UNIX domain socket.") (license license:asl2.0))) -(define-public python-requests-unixsocket - (deprecated-package "python-requests-unixsocket" python-requests-unixsocket2)) +(define-deprecated-package python-requests-unixsocket + python-requests-unixsocket2) (define-public python-requests-ntlm (package @@ -10003,8 +10036,8 @@ decorators and tools to describe your API and expose its documentation properly Swagger.") (license license:bsd-3))) -(define-public python-flask-restplus - (deprecated-package "python-flask-restplus" python-flask-restx)) +(define-deprecated-package python-flask-restplus + python-flask-restx) (define-public python-flask-socketio (package @@ -10183,6 +10216,30 @@ conflicts detected by that mechanism.") for Python. It is mainly used by the ZODB.") (license license:zpl2.1))) +(define-public python-truststore + (package + (name "python-truststore") + (version "0.10.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "truststore" version)) + (sha256 + (base32 "00f3xc7720rkddsn291yrw871kfnimi6d9xbwi75xbb3ci1vv4cx")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #f)) ;all tests require Internet access + (native-inputs + (list python-flit-core)) + (home-page "https://github.com/sethmlarson/truststore") + (synopsis "Verify certificates using native system trust stores") + (description + "Truststore is a library which exposes native system certificate stores (ie +\"trust stores\") through an @code{ssl.SSLContext-like} API. This means that +Python applications no longer need to rely on certifi as a root certificate +store.") + (license license:expat))) + (define-public python-robot-detection (package (name "python-robot-detection") |
