guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 5f4e06eea519e0514bca980253ccf78d748c01b1
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Nov 3 21:46:35 2026 +0000
gnu: python-yarl: Update to 1.25.1.
* gnu/packages/python-web.scm (python-yarl): Update to 1.25.1.
[source]: Switch to git-fetch.
[phases]{avoid-pytest-cov-preload}: Remove phase; substitute with full
pytest.ini removal.
{fix-pytest-config}: New phase; remove the whole pytest.ini file.
{patch-build-system}: Locate before {build} phase, fix the patch.
[propagated-inputs]: Remove python-packaging.
[native-inputs]: Remove python-pytest-xdist and python-tomli.
[home-page]: Refresh URL as seen on GitHub page.
---
gnu/packages/python-web.scm | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 79fd1a338f6..cda4c94ce1a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -11881,40 +11881,38 @@ asynchronously.")
(define-public python-yarl
(package
(name "python-yarl")
- (version "1.18.3")
+ (version "1.25.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "yarl" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aio-libs/yarl/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1qfj6kvdxr8bzka4lp0bh0xfgr5mzx7zzvj2jb4vcxxzbk20265c"))))
+ (base32 "1m97ma50il0yrw79qbvskarm68aqbgwn0knybf8acfppaf11a2vi"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags '(list "--ignore-glob=tests/test_*_benchmarks.py")
#:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'avoid-pytest-cov-preload
- (lambda _
- (substitute* "pytest.ini"
- (("-p pytest_cov") ""))))
- (add-after 'unpack 'patch-build-system
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ (delete-file "pytest.ini")))
+ (add-before 'build 'patch-build-system
(lambda _
- ;; XXX: I don't know how to tell it to build the extensions in
- ;; place.
+ ;; XXX: Project wraps modified `setuptools.build_meta`.
(substitute* "packaging/pep517_backend/_backend.py"
- (("build_inplace=False") "build_inplace=True")))))))
+ (("default=False") "default=True")))))))
(native-inputs
(list python-cython
python-expandvars
python-pytest
- python-pytest-xdist
- python-setuptools
- python-tomli))
+ python-setuptools))
(propagated-inputs
- (list python-packaging python-idna python-multidict python-propcache))
- (home-page "https://github.com/aio-libs/yarl/")
+ (list python-idna python-multidict python-propcache))
+ (home-page "https://yarl.aio-libs.org/")
(synopsis "Yet another URL library")
(description "@code{yarl} module provides handy @code{URL} class
for URL parsing and changing.")