diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-29 18:01:46 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-04 21:03:13 +0000 |
| commit | f2f81c242598bbb9acfe43e1c2830209d76d3a7c (patch) | |
| tree | 5b085c6601b5e54bbe749d28d8fcbe5d06bc4361 /gnu/packages/python-web.scm | |
| parent | d554215902a4857fba90c55bba8b0aa0d557de3d (diff) | |
gnu: python-pycares: Update to 4.11.0.
* gnu/packages/python-web.scm (python-pycares): Update to 4.11.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'configure-system-lib.
[native-inputs]: Add python-pytest, python-setuptools.
[inputs]: Add c-ares.
[description]: Improve style.
Change-Id: I09246a7b762b7061aac7b4bafe23cae4864abebb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0ed00ac447f..abb44a847fd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -115,6 +115,7 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages admin) + #:use-module (gnu packages adns) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages nss) @@ -8500,22 +8501,38 @@ supports features like HTTP keep-alive, reget, throttling and more.") (define-public python-pycares (package (name "python-pycares") - (version "4.3.0") + (version "4.11.0") (source (origin - (method url-fetch) - (uri (pypi-uri "pycares" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/saghul/pycares") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0i8d0433wmm7wi8i2l2hjiyhmy35b9s888qrk6fqx5xcdmpnjhn5")))) - (build-system python-build-system) - (arguments `(#:tests? #f)) ;tests require internet access + (base32 "18syxp9bpm70zfiw427p7cpp6wg0ybrw6b32c1zvdp2i8jgd82xl")) + (snippet #~(begin + (rmdir "deps/c-ares"))))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Half of the tests require internet access + ;; There is currently no markers to avoid running them. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'configure-system-lib + (lambda _ + (setenv "PYCARES_USE_SYSTEM_LIB" "1")))))) + (native-inputs (list python-pytest python-setuptools)) + (inputs (list c-ares)) (propagated-inputs (list python-cffi)) (home-page "https://github.com/saghul/pycares") (synopsis "Python interface for @code{c-ares}") - (description "@code{pycares} is a Python module which provides an -interface to @code{c-ares}, a C library that performs DNS requests and -name resolutions asynchronously.") + (description + "@code{pycares} is a Python module which provides an interface to +@code{c-ares}, a C library that performs DNS requests and name resolutions +asynchronously.") (license license:expat))) (define-public python-yarl |
