From 42360fd11fbbc55fabbf8a2310be28d4a86084f5 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 25 Oct 2025 16:21:06 +0200 Subject: [PATCH] gnu: python-pbkdf2: Switch to pyproject. * gnu/packages/python-xyz.scm (python-pbkdf2): [build-system]: Switch to pyproject-build-system. [arguments]: Replace <#:phases> with <#:test-backend, #:test-flags>. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I82678c91cf5cd8633954546bfe660648dad64363 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 22820adda8d..56dad43f4b4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24200,25 +24200,24 @@ creating a tag.") (method url-fetch) (uri (pypi-uri "pbkdf2" version)) (sha256 - (base32 - "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc")))) - (build-system python-build-system) + (base32 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "python" "test/test_pbkdf2.py")))))) + (list + #:test-backend #~'custom + #:test-flags #~(list "test/test_pbkdf2.py"))) + (native-inputs (list python-setuptools)) (home-page "https://www.dlitz.net/software/python-pbkdf2/") (synopsis "Password-based key derivation") - (description "This module implements the password-based key derivation - function, PBKDF2, specified in RSA PKCS#5 v2.0. + (description + "This module implements the password-based key derivation function, +PBKDF2, specified in RSA PKCS#5 v2.0. - PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which - is part of the RSA Public Key Cryptography Standards series. The provided - implementation takes a password or a passphrase and a salt value (and - optionally a iteration count, a digest module, and a MAC module) and provides - a file-like object from which an arbitrarily-sized key can be read.") +PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which +is part of the RSA Public Key Cryptography Standards series. The provided +implementation takes a password or a passphrase and a salt value (and +optionally a iteration count, a digest module, and a MAC module) and provides +a file-like object from which an arbitrarily-sized key can be read.") (license license:expat))) (define-public python-qrcode