guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

50/57: gnu: python-dnspython: Update to 2.7.0.


From: guix-commits
Subject: 50/57: gnu: python-dnspython: Update to 2.7.0.
Date: Thu, 19 Dec 2024 06:31:45 -0500 (EST)

rekado pushed a commit to branch python-team
in repository guix.

commit 2bfc479cf6f3ad5dd8528002edbe32662c773103
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 807cd6aba5..3912c840ed 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22937,29 +22937,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]