guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 0fb344c1d9832621c2aa64c9d844b3a26cc7b1bc
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 56a941b36c..e55952ff6b 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2011,13 +2011,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)))
@@ -2028,8 +2031,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.
@@ -2066,6 +2071,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
@@ -2085,7 +2096,6 @@ for adding, removing and dropping callbacks.")
(propagated-inputs
(list python-aiohappyeyeballs
python-aiosignal
- python-async-timeout
python-attrs
python-frozenlist
python-multidict
@@ -2095,13 +2105,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