From 35c3a1f5b5bb120ca2194b2aab5f93fcd511d1cd Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 12 Aug 2025 15:18:51 +0200 Subject: [PATCH] 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 --- gnu/packages/mail.scm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9dcc4660d0..e6bc71710b 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -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")