Subject: [bug#77575] [PATCH 01/21] gnu: python-sanic: Update to 25.3.0.

From: Nicolas Graves <[email-masked]>
Date: Sun, 6 Apr 2025 14:37:03 +0200

* gnu/packages/python-web.scm (python-sanic): Update to 25.3.0.
[source]: Add a snippet to loosen setuptools requirement.
[native-inputs]: Add python-chardet, python-cryptography,
python-docutils, python-mypy, python-pygments,
python-pytest-benchmark, python-pytest-sanic, python-slotscheck,
python-towncrier, python-types-ujson.
---
 gnu/packages/python-web.scm | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index bc35bc1c83..2fda55760f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -9021,14 +9021,18 @@ (define-public python-sanic-testing
 (define-public python-sanic
   (package
     (name "python-sanic")
-    (version "23.12.1")
+    (version "25.3.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "sanic" version))
        (sha256
-        (base32
-         "115vnir4qijv89139g5h0i4l0n4w3bgh1ickgnk8xidxsa0wla15"))))
+        (base32 "1fv9wgsj54scbr7qhmwdgc4zqnqpwacpakcfxhsg10gc04h54pbp"))
+       ;; Loosen requirements for both python-sanic and python-sanic-bootstrap.
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "setup.py"
+                    (("setuptools>=[0-9.]*")
+                     "setuptools")))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -9081,10 +9085,20 @@ (define-public python-sanic
            python-websockets))
     (native-inputs
      (list python-beautifulsoup4
+           python-chardet
+           python-cryptography
+           python-docutils
+           python-mypy
+           python-pygments
            python-pytest
            python-pytest-asyncio
+           python-pytest-benchmark
+           python-pytest-sanic
            python-sanic-testing
            python-setuptools
+           python-slotscheck
+           python-towncrier
+           python-types-ujson
            python-uvicorn
            python-wheel))
     (home-page "https://github.com/sanic-org/sanic/")
-- 
2.49.0