sharlatan pushed a commit to branch master
in repository guix.

commit f0e0caa570681a29be34ca5a5c634da22a7c4099
Author: Daniel Ziltener <[email protected]>
AuthorDate: Thu Apr 10 14:51:06 2025 +0200

    gnu: Add python-quart-trio.
    
    * gnu/packages/python-web.scm (python-quart-trio): New variable.
    
    Change-Id: I0e429361bfaaa9a57210a8b2f48e19eeaa14d21e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-web.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b8230b4117..52e1eafc97 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -70,6 +70,7 @@
 ;;; Copyright © 2024 Zheng Junjie <[email protected]>
 ;;; Copyright © 2024 Spencer King <[email protected]>
 ;;; Copyright © 2024 Attila Lendvai <[email protected]>
+;;; Copyright © 2025 Daniel Ziltener <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9945,6 +9946,43 @@ library for accessing the Twitter API.")
 as Flask.")
     (license license:expat)))
 
+(define-public python-quart-trio
+  (package
+    (name "python-quart-trio")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "quart_trio" version))
+       (sha256
+        (base32 "130r8hdk7xxjp380z1r3m28lw86q2a6g9rf0mgp9gs6hk04q9v02"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-coverage-pytest-options
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("--no-cov-on-fail") "")))))))
+    (native-inputs
+     (list python-pdm-backend
+           python-pytest
+           python-pytest-sugar
+           python-pytest-trio))
+    (propagated-inputs
+     (list python-exceptiongroup
+           python-hypercorn
+           python-quart
+           python-trio))
+    (home-page "https://github.com/pgjones/quart-trio";)
+    (synopsis "Extension for Quart to support the Trio event loop")
+    (description
+     "This package provides a Quart extension to provide Trio support.  This
+is an alternative to using the asyncio event loop present in the Python
+standard library and supported by default in Quart.")
+    (license license:expat)))
+
 (define-public python-ajsonrpc
   (package
     (name "python-ajsonrpc")

Reply via email to