Subject: [PATCH 1/2] gnu: Add python-httpauth.

From: jgart <[email-masked]>
Date: Mon, 29 Jul 2024 12:58:13 -0500

* gnu/packages/python-web.scm (python-httpauth): New variable.

Change-Id: I02ece90600961a634d30f34c301bd387e5aa23b7
---
 gnu/packages/python-web.scm | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 94a0406ea7..5bc57fe0e5 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -45,7 +45,7 @@
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
 ;;; Copyright © 2021 Pradana Aumars <[email-masked]>
 ;;; Copyright © 2021, 2022, 2024 Arun Isaac <[email-masked]>
-;;; Copyright © 2021, 2022 jgart <[email-masked]>
+;;; Copyright © 2021, 2022, 2024 jgart <[email-masked]>
 ;;; Copyright © 2021 Alice Brenon <[email-masked]>
 ;;; Copyright © 2022 John Kehayias <[email-masked]>
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <[email-masked]>
@@ -831,6 +831,24 @@ (define-public python-a2wsgi
 way around.  It depends only on the Python standard library.")
     (license license:asl2.0)))
 
+(define-public python-httpauth
+  (package
+    (name "python-httpauth")
+    (version "0.4.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "httpauth" version))
+              (sha256
+               (base32
+                "1m6rwvivg61l3h34hf6p6gkqmr69sb1c4k5ha379nxq0p8bfgahb"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/jonashaag/httpauth")
+    (synopsis "WSGI HTTP Digest Authentication middleware")
+    (description "@code{python-httpauth} is WSGI middleware that secures some/all
+routes using HTTP Digest Authentication.")
+    (license license:bsd-2)))
+
 (define-public python-css-html-js-minify
   (package
     (name "python-css-html-js-minify")

base-commit: fdc6274de5b1d617fcabb3f3af9d2c0dd2a6520d
-- 
2.45.2