From 3d783588476ddd0df00110249a4ceb5319440b72 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 9 Feb 2026 23:49:55 +0100 Subject: [PATCH] gnu: libpwquality: Fix package build on python-3.12. * gnu/packages/password-utils.scm (libpwquality) [arguments]: Improve style, use gexps. [native-inputs]: Improve style, add python-setuptools. Change-Id: I124701452e3f8e22625aa30f69a51a71cb6827de Signed-off-by: Sharlatan Hellseher --- gnu/packages/password-utils.scm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 27db504797..1aebde0da2 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -768,17 +768,15 @@ them out, at the source.") "1209l7ba51rjsq724hi8my0s11xpslp9hhif9p89jp9hbnviikvg")))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'configure 'set-LDFLAGS - (lambda* (#:key inputs outputs #:allow-other-keys) - (setenv "LDFLAGS" - (string-append - "-Wl,-rpath=" - (assoc-ref outputs "out") "/lib")) - #t))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'set-LDFLAGS + (lambda _ + (setenv "LDFLAGS" + (string-append "-Wl,-rpath=" #$output "/lib"))))))) (native-inputs - `(("python" ,python-wrapper))) + (list python-setuptools python-wrapper)) (inputs (list cracklib)) (synopsis "Password quality checker")