mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
7589dbc951
commit
1ebc72c323
1 changed files with 38 additions and 22 deletions
|
@ -22971,29 +22971,45 @@ until the object is actually required, and caches the result of said call.")
|
||||||
(define-public python-dnspython
|
(define-public python-dnspython
|
||||||
(package
|
(package
|
||||||
(name "python-dnspython")
|
(name "python-dnspython")
|
||||||
(version "2.1.0")
|
(version "2.7.0")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "dnspython" version ".zip"))
|
(method url-fetch)
|
||||||
(sha256
|
(uri (pypi-uri "dnspython" version))
|
||||||
(base32
|
(sha256
|
||||||
"1m0xvyby8baaxp6pfm0fgq8d2pq5dd8qm8bzfbrs009jaw5pza74"))))
|
(base32 "1wgsbiz90npdi47cilmwdccm29hl9qddzkm533v1rj8dv8p4776f"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; XXX: requires internet access
|
(list
|
||||||
#:phases
|
#:test-flags
|
||||||
(modify-phases %standard-phases
|
#~(list
|
||||||
(add-after 'unpack 'patch-getprotobyname-calls
|
;; AssertionError: assert False
|
||||||
;; These calls are problematic in the build environment as there is
|
"--deselect=tests/test_features.py::test_have"
|
||||||
;; no /etc/protocols. This breaks the sanity-check phase of any
|
;; dns.exception.SyntaxError: protocol not found
|
||||||
;; package depnding on this one.
|
"--deselect=tests/test_rdata.py::RdataTestCase::test_misc_good_WKS_text")
|
||||||
(lambda _
|
#:phases
|
||||||
(substitute* "dns/rdtypes/IN/WKS.py"
|
#~(modify-phases %standard-phases
|
||||||
(("socket.getprotobyname\\('tcp'\\)")
|
(add-after 'unpack 'patch-getprotobyname-calls
|
||||||
"6")
|
;; These calls are problematic in the build environment as there is
|
||||||
(("socket.getprotobyname\\('udp'\\)")
|
;; no /etc/protocols. This breaks the sanity-check phase of any
|
||||||
"17")))))))
|
;; package depnding on this one.
|
||||||
(native-inputs (list unzip))
|
(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")
|
(home-page "https://www.dnspython.org")
|
||||||
(synopsis "DNS toolkit for Python")
|
(synopsis "DNS toolkit for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue