mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-dnspython-1.16: Add missing inputs.
* gnu/packages/python-xyz.scm (python-dnspython-1.16)[arguments]: Add phase 'compatibility. [native-inputs]: Add python-pytest, python-setuptools, and python-wheel. Change-Id: I2d26d6607e4e376f204b790f14f38e067ebdc456
This commit is contained in:
parent
db9b46ad53
commit
b1229e5b44
1 changed files with 20 additions and 1 deletions
|
@ -23088,7 +23088,26 @@ It supports TSIG authenticated messages and EDNS0.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
|
"1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
|
||||||
(native-inputs '())))
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'compatibility
|
||||||
|
(lambda _
|
||||||
|
(substitute* "dns/namedict.py"
|
||||||
|
(("collections.MutableMapping")
|
||||||
|
"collections.abc.MutableMapping"))))
|
||||||
|
(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-pytest python-setuptools python-wheel))))
|
||||||
|
|
||||||
(define-public python-py3dns
|
(define-public python-py3dns
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue