guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 24b9bad3167b9b62a0cf743cd3da91963d52fb4c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jun 11 12:07:32 2026 +0100

    gnu: python-flask: Update to 3.1.3.
    
    * gnu/packages/python-web.scm (python-flask): Update to 3.1.3.
    [source]: Switch to git-fetch.
    [arguments] <test-flags>: Skip one test.
    [propagated-inputs]: Add python-markupsafe and python-dotenv.
    
    Change-Id: I30c8110d29d32d0f4d8f694962ec3dd7ed89aa48
---
 gnu/packages/python-web.scm | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index aa94302d21..6c38698e53 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8198,24 +8198,37 @@ WSGI.")
 (define-public python-flask
   (package
     (name "python-flask")
-    (version "3.1.0")
+    (version "3.1.3")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "flask" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/pallets/flask";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1b1nb250jxrjplbs21wnwq69250vs3iz2pdhs7cwi5y8hi8kr1sz"))))
+        (base32 "006s5rm4syg48ymmwlnrkx8f8j758waksvhdsfiqx51zv52c0p8l"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; assert 404 == 400
+      ;; This test is removed on master branch.
+      #~(list (string-append "--deselect=tests/test_reqctx.py"
+                             "::test_bad_environ_raises_bad_request"))))
     (native-inputs
      (list python-flit-core
            python-pytest))
     (propagated-inputs
-     (list python-asgiref               ;async extra
+     (list python-blinker
            python-click
-           python-blinker
            python-itsdangerous
            python-jinja2
-           python-werkzeug))
+           python-markupsafe
+           python-werkzeug
+           ;; [optional]
+           python-asgiref
+           python-dotenv))
     (home-page "https://palletsprojects.com/p/flask/";)
     (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
     (description "Flask is a micro web framework based on the Werkzeug toolkit

Reply via email to