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

commit e8d476c693d08a8b02d3eeaf41f5e3de84c33bec
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jan 23 21:42:27 2026 +0000

    gnu: python-aiohttp: Update to 3.11.18.
    
    * gnu/packages/python-web.scm (python-aiohttp): Update to 3.11.18.
    [phases]{fix-pytest-config}: New phase.
    [propagated-inputs]: Remove python-async-timeout.
    [native-inputs]: Remove python-pytest-cov and python-wheel; add
    python-isal.
    
    Change-Id: Iddaa74cf3cae0ce50105c556311b0a43f761bea9
---
 gnu/packages/python-web.scm | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index eda84d3abd..2bde63e43c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2012,13 +2012,16 @@ for adding, removing and dropping callbacks.")
 (define-public python-aiohttp
   (package
     (name "python-aiohttp")
-    (version "3.11.11")
+    ;; TODO: Newer versions require zlib-ng:
+    ;; <https://github.com/zlib-ng/zlib-ng>,
+    ;; <https://github.com/pycompression/python-zlib-ng>.
+    (version "3.11.18")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "aiohttp" version))
        (sha256
-        (base32 "0gihj076nm3863sqfnbh786621w1ad7lj7fq88d85wzbwvqwfjdv"))
+        (base32 "12jmkxkc5nnk6ma6m7rrs0w4vzswfc47ffxn5m0pwav1708nx1df"))
        (snippet
         #~(begin
             (use-modules ((guix build utils)))
@@ -2029,8 +2032,10 @@ for adding, removing and dropping callbacks.")
     (build-system pyproject-build-system)
     (arguments
      (list
+      ;; tests: 3045 passed, 32 skipped, 29 xfailed, 2 subtests passed
       #:test-flags
       '(list
+        "--numprocesses" (number->string (parallel-job-count))
         ;; This tests requires the 'proxy.py' module, not yet packaged.
         "--ignore=tests/test_proxy_functional.py"
         ;; These tests need brotli.
@@ -2067,6 +2072,12 @@ for adding, removing and dropping callbacks.")
          "and not test_add_static_path_resolution"))
       #:phases
       '(modify-phases %standard-phases
+          (add-after 'unpack 'fix-pytest-config
+            (lambda _
+              (substitute* "setup.cfg"
+                (("--numprocesses=auto") "")
+                (("-p pytest_cov") "")
+                (("--cov.*") ""))))
          (add-after 'unpack 'fix-tests
            (lambda _
              ;; Make sure the timestamp of this file is > 1990, because a few
@@ -2086,7 +2097,6 @@ for adding, removing and dropping callbacks.")
     (propagated-inputs
      (list python-aiohappyeyeballs
            python-aiosignal
-           python-async-timeout
            python-attrs
            python-frozenlist
            python-multidict
@@ -2096,13 +2106,12 @@ for adding, removing and dropping callbacks.")
      (list gunicorn-bootstrap
            python-cython
            python-freezegun
+           python-isal
            python-pytest
-           python-pytest-cov
            python-pytest-mock
            python-pytest-xdist
            python-re-assert
-           python-setuptools
-           python-wheel))
+           python-setuptools))
     (home-page "https://github.com/aio-libs/aiohttp/";)
     (synopsis "Async HTTP client/server framework (asyncio)")
     (description "@code{aiohttp} is an asynchronous HTTP client/server

Reply via email to