diff options
| author | NoƩ Lopez <noelopez@free.fr> | 2026-03-12 18:43:25 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-22 09:36:13 +0100 |
| commit | db8edf95ccd2488e6b2553263de81900b2960bf2 (patch) | |
| tree | ac6769cde2b415729f9e792bda3caf66317e708e /gnu/packages/python-crypto.scm | |
| parent | 33516f757fac7d5257a7009dc00a051d00eb9c26 (diff) | |
gnu: Add python-zxcvbn-rs-py.
* gnu/packages/python-crypto.scm (python-zxcvbn-rs-py): New variable.
* gnu/packages/rust-crates.scm (rust-zxcvbn3): New variable.
(lookup-cargo-inputs): Add python-zxcvbn-rs-py.
Change-Id: I356e33c8686961b7c125afd28002f5b4f0d2c393
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 93e542d80fc..c0143835344 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1865,6 +1865,61 @@ in different situations. @end enumerate") (license license:expat))) +(define-public python-zxcvbn-rs-py + (package + (name "python-zxcvbn-rs-py") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fief-dev/zxcvbn-rs-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pmc68x6ycsz4g7sr48nb7cv6v46rljc3wb1vc531lyc6hsh80qm")))) + (build-system pyproject-build-system) + (arguments + (list + #:imported-modules `(,@%cargo-build-system-modules + ,@%pyproject-build-system-modules) + #:modules '(((guix build cargo-build-system) #:prefix cargo:) + (guix build pyproject-build-system) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prepare-cargo-build-system + (lambda args + (for-each + (lambda (phase) + (format #t "Running cargo phase: ~a~%" phase) + (apply (assoc-ref cargo:%standard-phases phase) + #:cargo-target #$(cargo-triplet) + args)) + '(unpack-rust-crates + configure + check-for-pregenerated-files + patch-cargo-checksums)))) + (add-before 'check 'prepare-for-tests + (lambda _ + (delete-file-recursively "zxcvbn_rs_py")))))) + (native-inputs + (list rust + `(,rust "cargo") + maturin + python-pytest + python-wheel)) + (inputs + (cargo-inputs 'python-zxcvbn-rs-py)) + (home-page "https://github.com/fief-dev/zxcvbn-rs-py") + (synopsis + "Python bindings for zxcvbn-rs, a password strength estimation library") + (description + "This package provides a library to estimate password strength. It is +implemented by python bindings for zxcvbn-rs and aims to be faster than +@code{python-zxcvbn} thanks to its Rust core.") + (license license:expat))) + ;; XXX: Not maintained since 2016. (define-public python-pydes (package |
