[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
50/107: gnu: python-dnspython: Update to 2.7.0.
From: |
guix-commits |
Subject: |
50/107: gnu: python-dnspython: Update to 2.7.0. |
Date: |
Wed, 1 Jan 2025 12:49:01 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 3b59c8b09ccddcf6d57676ffb4044cc9ed6bdbfc
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Dec 17 19:29:27 2024 +0000
gnu: python-dnspython: Update to 2.7.0.
* gnu/packages/python-xyz.scm (python-dnspython): Update to
2.7.0. Improve style.
[source]: PyPI archive has been swapped from .zip to .tar.gz.
[build-system]: Swap to pyproject-build-system.
[arguments]<test-flags>: Skip 2 tests.
[propagated-inputs]: Add python-cryptography, python-aioquic, python-h2,
python-httpcore, python-httpx, python-idna, and python-trio.
[native-inputs]: Remove unzip; add python-hatchling and python-pytest.
Change-Id: I726a9d68c61435089c1e7a846e8aa7c8b41f8378
---
gnu/packages/python-xyz.scm | 60 ++++++++++++++++++++++++++++-----------------
1 file changed, 38 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2ed2b0bc45..08af8487f3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22940,29 +22940,45 @@ until the object is actually required, and caches the
result of said call.")
(define-public python-dnspython
(package
(name "python-dnspython")
- (version "2.1.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "dnspython" version ".zip"))
- (sha256
- (base32
- "1m0xvyby8baaxp6pfm0fgq8d2pq5dd8qm8bzfbrs009jaw5pza74"))))
- (build-system python-build-system)
+ (version "2.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dnspython" version))
+ (sha256
+ (base32 "1wgsbiz90npdi47cilmwdccm29hl9qddzkm533v1rj8dv8p4776f"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; XXX: requires internet access
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-getprotobyname-calls
- ;; These calls are problematic in the build environment as there is
- ;; no /etc/protocols. This breaks the sanity-check phase of any
- ;; package depnding on this one.
- (lambda _
- (substitute* "dns/rdtypes/IN/WKS.py"
- (("socket.getprotobyname\\('tcp'\\)")
- "6")
- (("socket.getprotobyname\\('udp'\\)")
- "17")))))))
- (native-inputs (list unzip))
+ (list
+ #:test-flags
+ #~(list
+ ;; AssertionError: assert False
+ "--deselect=tests/test_features.py::test_have"
+ ;; dns.exception.SyntaxError: protocol not found
+
"--deselect=tests/test_rdata.py::RdataTestCase::test_misc_good_WKS_text")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-getprotobyname-calls
+ ;; These calls are problematic in the build environment as there is
+ ;; no /etc/protocols. This breaks the sanity-check phase of any
+ ;; package depnding on this one.
+ (lambda _
+ (substitute* "dns/rdtypes/IN/WKS.py"
+ (("socket.getprotobyname\\('tcp'\\)")
+ "6")
+ (("socket.getprotobyname\\('udp'\\)")
+ "17")))))))
+ (native-inputs
+ (list python-hatchling
+ python-pytest))
+ (propagated-inputs
+ (list python-cryptography
+ python-aioquic
+ python-h2
+ python-httpcore
+ python-httpx
+ python-idna
+ python-trio))
(home-page "https://www.dnspython.org")
(synopsis "DNS toolkit for Python")
(description
- 24/107: gnu: Add python-devpi-server., (continued)
- 24/107: gnu: Add python-devpi-server., guix-commits, 2025/01/01
- 28/107: gnu: python-webcolors: Update to 24.11.1., guix-commits, 2025/01/01
- 34/107: gnu: python-chardet: Update to 5.2.0., guix-commits, 2025/01/01
- 40/107: gnu: python-uvicorn: Update to 0.34.0., guix-commits, 2025/01/01
- 42/107: gnu: python-devpi-process: Add missing input., guix-commits, 2025/01/01
- 54/107: gnu: python-beniget: Update to 0.4.2.post1., guix-commits, 2025/01/01
- 17/107: gnu: python-numcodecs: Update to 0.13.1., guix-commits, 2025/01/01
- 33/107: gnu: python-colorama: Update to 0.4.6., guix-commits, 2025/01/01
- 37/107: gnu: python-typing-extensions: Update to 4.12.2., guix-commits, 2025/01/01
- 49/107: gnu: python-stsci-stimage: Fix build., guix-commits, 2025/01/01
- 50/107: gnu: python-dnspython: Update to 2.7.0.,
guix-commits <=
- 45/107: gnu: python-pydantic: Fix build., guix-commits, 2025/01/01
- 68/107: gnu: python-annotated-types: Update to 0.7.0., guix-commits, 2025/01/01
- 71/107: gnu: python-pydantic-2: Update to 2.7.0., guix-commits, 2025/01/01
- 81/107: gnu: python-cachecontrol: Update to 0.14.1., guix-commits, 2025/01/01
- 82/107: gnu: python-isodate: Update to 0.7.2., guix-commits, 2025/01/01
- 93/107: gnu: python-cryptography-vectors: Update to 44.0.0., guix-commits, 2025/01/01
- 99/107: gnu: python-ipydatawidgets: Disable more tests and add inputs., guix-commits, 2025/01/01
- 103/107: gnu: python-openapi-core: Update to 0.19.4., guix-commits, 2025/01/01
- 21/107: gnu: Add python-lazy., guix-commits, 2025/01/01
- 20/107: gnu: Add python-packaging-legacy., guix-commits, 2025/01/01