mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: python-dkimpy: Switch to pyproject.
* gnu/packages/mail.scm (python-dkimpy): [build-system]: Switch to pyproject-build-system. [arguments]: Improve style, use search-input-file. [native-inputs]: Add python-setuptools, python-wheel. Change-Id: I427c770321b9c51297d7943e4942d7ebe0a3c023 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
ab6100a59d
commit
35c3a1f5b5
@@ -4726,23 +4726,23 @@ and Conformance}
|
||||
(uri (pypi-uri "dkimpy" version))
|
||||
(sha256
|
||||
(base32 "088iz5cqjqh4c7141d94pvn13bh25aizqlrifwv6fs5g16zj094s"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'patch-source-shebangs 'patch-more-source
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((openssl (assoc-ref inputs "openssl")))
|
||||
(substitute* "dkim/dknewkey.py"
|
||||
(("/usr/bin/openssl") (string-append openssl "/bin/openssl"))))
|
||||
#t))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "python" "test.py"))))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'patch-source-shebangs 'patch-more-source
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "dkim/dknewkey.py"
|
||||
(("/usr/bin/openssl")
|
||||
(search-input-file inputs "bin/openssl")))))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "python" "test.py"))))))
|
||||
(propagated-inputs
|
||||
(list python-dnspython))
|
||||
(native-inputs
|
||||
(list python-authres python-pynacl))
|
||||
(list python-authres python-pynacl python-setuptools python-wheel))
|
||||
(inputs
|
||||
(list openssl))
|
||||
(home-page "https://launchpad.net/dkimpy")
|
||||
|
||||
Reference in New Issue
Block a user