gnu: python-yarl: Update to 1.18.3.

* gnu/packages/python-web.scm (python-yarl): Update to 1.18.3.
[source]: Remove snippet.
[build-system]: Use pyproject-build-system.
[arguments]: Enable tests; delete custom 'check phase; remove phase
'cythonize-code; add phase 'patch-build-system.
[native-inputs]: Remove python-cython and python-pytest-runner; add
python-covdefaults, python-cython-3, python-expandvars, python-pytest-cov,
python-pytest-xdist, python-setuptools, python-tomli, and python-wheel.
[propagated-inputs]: Add python-packaging and python-propcache.

Change-Id: Iab46d2600782ffee6fdf0c9816b771c0884af04a
This commit is contained in:
Ricardo Wurmus 2025-01-01 21:32:31 +01:00
parent f2a78678d0
commit ebfd6af972
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -6108,37 +6108,38 @@ name resolutions asynchronously.")
(define-public python-yarl (define-public python-yarl
(package (package
(name "python-yarl") (name "python-yarl")
(version "1.6.3") (version "1.18.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "yarl" version)) (uri (pypi-uri "yarl" version))
(sha256 (sha256
(base32 (base32
"045z4ssg8g5h0qhz8hnx74hswgkndaldqq1xi5l1n5s0j996d44a")) "1qfj6kvdxr8bzka4lp0bh0xfgr5mzx7zzvj2jb4vcxxzbk20265c"))))
(modules '((guix build utils))) (build-system pyproject-build-system)
(snippet
#~(begin
(delete-file "yarl/_quoting_c.c")))))
(build-system python-build-system)
(arguments (arguments
(list #:tests? #f ; test suite can't find yarl._quoting_c (list
#:phases #:test-flags '(list "--ignore-glob=tests/test_*_benchmarks.py")
#~(modify-phases %standard-phases #:phases
(add-after 'unpack 'cythonize-code '(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'patch-build-system
(invoke "cython" "yarl/_quoting_c.pyx"))) (lambda _
(replace 'check ;; XXX: I don't know how to tell it to build the extensions in
(lambda* (#:key tests? inputs outputs #:allow-other-keys) ;; place.
(when tests? (substitute* "packaging/pep517_backend/_backend.py"
(substitute* "setup.cfg" (("build_inplace=False") "build_inplace=True")))))))
(("--cov=yarl") ""))
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest")))))))
(native-inputs (native-inputs
(list python-cython python-pytest python-pytest-runner)) (list python-covdefaults
python-cython-3
python-expandvars
python-pytest
python-pytest-cov
python-pytest-xdist
python-setuptools
python-tomli
python-wheel))
(propagated-inputs (propagated-inputs
(list python-idna python-multidict)) (list python-packaging python-idna python-multidict python-propcache))
(home-page "https://github.com/aio-libs/yarl/") (home-page "https://github.com/aio-libs/yarl/")
(synopsis "Yet another URL library") (synopsis "Yet another URL library")
(description "@code{yarl} module provides handy @code{URL} class (description "@code{yarl} module provides handy @code{URL} class