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. | |||
| 1865 | @end enumerate") | 1865 | @end enumerate") |
| 1866 | (license license:expat))) | 1866 | (license license:expat))) |
| 1867 | 1867 | ||
| 1868 | (define-public python-zxcvbn-rs-py | ||
| 1869 | (package | ||
| 1870 | (name "python-zxcvbn-rs-py") | ||
| 1871 | (version "0.3.0") | ||
| 1872 | (source | ||
| 1873 | (origin | ||
| 1874 | (method git-fetch) | ||
| 1875 | (uri (git-reference | ||
| 1876 | (url "https://github.com/fief-dev/zxcvbn-rs-py") | ||
| 1877 | (commit (string-append "v" version)))) | ||
| 1878 | (file-name (git-file-name name version)) | ||
| 1879 | (sha256 | ||
| 1880 | (base32 "0pmc68x6ycsz4g7sr48nb7cv6v46rljc3wb1vc531lyc6hsh80qm")))) | ||
| 1881 | (build-system pyproject-build-system) | ||
| 1882 | (arguments | ||
| 1883 | (list | ||
| 1884 | #:imported-modules `(,@%cargo-build-system-modules | ||
| 1885 | ,@%pyproject-build-system-modules) | ||
| 1886 | #:modules '(((guix build cargo-build-system) #:prefix cargo:) | ||
| 1887 | (guix build pyproject-build-system) | ||
| 1888 | (guix build utils)) | ||
| 1889 | #:phases | ||
| 1890 | #~(modify-phases %standard-phases | ||
| 1891 | (add-after 'unpack 'prepare-cargo-build-system | ||
| 1892 | (lambda args | ||
| 1893 | (for-each | ||
| 1894 | (lambda (phase) | ||
| 1895 | (format #t "Running cargo phase: ~a~%" phase) | ||
| 1896 | (apply (assoc-ref cargo:%standard-phases phase) | ||
| 1897 | #:cargo-target #$(cargo-triplet) | ||
| 1898 | args)) | ||
| 1899 | '(unpack-rust-crates | ||
| 1900 | configure | ||
| 1901 | check-for-pregenerated-files | ||
| 1902 | patch-cargo-checksums)))) | ||
| 1903 | (add-before 'check 'prepare-for-tests | ||
| 1904 | (lambda _ | ||
| 1905 | (delete-file-recursively "zxcvbn_rs_py")))))) | ||
| 1906 | (native-inputs | ||
| 1907 | (list rust | ||
| 1908 | `(,rust "cargo") | ||
| 1909 | maturin | ||
| 1910 | python-pytest | ||
| 1911 | python-wheel)) | ||
| 1912 | (inputs | ||
| 1913 | (cargo-inputs 'python-zxcvbn-rs-py)) | ||
| 1914 | (home-page "https://github.com/fief-dev/zxcvbn-rs-py") | ||
| 1915 | (synopsis | ||
| 1916 | "Python bindings for zxcvbn-rs, a password strength estimation library") | ||
| 1917 | (description | ||
| 1918 | "This package provides a library to estimate password strength. It is | ||
| 1919 | implemented by python bindings for zxcvbn-rs and aims to be faster than | ||
| 1920 | @code{python-zxcvbn} thanks to its Rust core.") | ||
| 1921 | (license license:expat))) | ||
| 1922 | |||
| 1868 | ;; XXX: Not maintained since 2016. | 1923 | ;; XXX: Not maintained since 2016. |
| 1869 | (define-public python-pydes | 1924 | (define-public python-pydes |
| 1870 | (package | 1925 | (package |
