From 16df8904e187f9530f69af6ff36e8075394f15bf Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 26 Aug 2025 01:50:51 +0200 Subject: [PATCH] gnu: python-zxcvbn: Switch to pyproject. * gnu/packages/python-crypto.scm (python-zxcvbn): [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools, python-wheel. [source, description]: Improve style. Change-Id: Id8e5ced7a074af5c8518c34a1d584740fdc2cafe Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-crypto.scm | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index abc8a729f16f9fa5c162b3efbc3fa1e322cb503c..1003d86fc4683a212a3dc36f9402846cea9d6095 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1760,22 +1760,24 @@ speed but without C extensions.") (package (name "python-zxcvbn") (version "4.4.28") - (source (origin - (method git-fetch) ;for tests - (uri (git-reference - (url "https://github.com/dwolfhub/zxcvbn-python") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0xzlsqc9h0llfy19w4m39jgfcnvzqviv8jhgwn3r75kip97i5mvs")))) - (build-system python-build-system) + (source + (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/dwolfhub/zxcvbn-python") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xzlsqc9h0llfy19w4m39jgfcnvzqviv8jhgwn3r75kip97i5mvs")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest python-setuptools python-wheel)) (home-page "https://github.com/dwolfhub/zxcvbn-python") (synopsis "Realistic password strength estimator Python library") - (description "This is a Python implementation of the @code{zxcvbn} library -created at Dropbox. The original library, written for JavaScript, can be -found @url{https://github.com/dropbox/zxcvbn, here}. This port includes -features such as: + (description + "This is a Python implementation of the @code{zxcvbn} library created at +Dropbox. The original library, written for JavaScript, can be found +@url{https://github.com/dropbox/zxcvbn, here}. This port includes features +such as: @enumerate @item Accepts user data to be added to the dictionaries that are tested against (name, birthdate, etc.)