guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/55: gnu: Add python-a2wsgi.


From: guix-commits
Subject: 06/55: gnu: Add python-a2wsgi.
Date: Thu, 21 Sep 2023 13:31:34 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 353f58db510ed5c37287c066449d701ec2092656
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Sep 11 21:45:03 2023 +0800

    gnu: Add python-a2wsgi.
    
    * gnu/packages/python-web.scm (python-a2wsgi): New variable.
---
 gnu/packages/python-web.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e1c5412a93..1b7225c991 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -653,6 +653,30 @@ allows mocking or testing ASGI applications without having 
to spin up an
 ASGI server.")
     (license license:expat)))
 
+(define-public python-a2wsgi
+  (package
+    (name "python-a2wsgi")
+    (version "1.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "a2wsgi" version))
+              (sha256
+               (base32
+                "1cmsbgfg0vp8pwqz8nmkbmdi0axis1yl34qb280h5ssh08ngc1m9"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:build-backend "pdm.backend"
+           ;; Tests have a circular dependency on uvicorn.
+           #:tests? #f))
+    (native-inputs
+     (list python-pdm-backend))
+    (home-page "https://github.com/abersheeran/a2wsgi";)
+    (synopsis "Convert WSGI to ASGI or vice versa")
+    (description
+     "This program converts a WSGI program to an ASGI program or the other
+way around.  It depends only on the Python standard library.")
+    (license license:asl2.0)))
+
 (define-public python-css-html-js-minify
   (package
     (name "python-css-html-js-minify")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]