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 | |
| 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')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 55 | ||||
| -rw-r--r-- | gnu/packages/rust-crates.scm | 76 |
2 files changed, 131 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 |
diff --git a/gnu/packages/rust-crates.scm b/gnu/packages/rust-crates.scm index 0903c1de1ad..b1e6408bf80 100644 --- a/gnu/packages/rust-crates.scm +++ b/gnu/packages/rust-crates.scm | |||
| @@ -32968,6 +32968,10 @@ | |||
| 32968 | (crate-source "zvariant_utils" "3.3.0" | 32968 | (crate-source "zvariant_utils" "3.3.0" |
| 32969 | "1sf5i71in36gc08jhak83pprnkam8gk936cqlq9hzx7q9sk26p7p")) | 32969 | "1sf5i71in36gc08jhak83pprnkam8gk936cqlq9hzx7q9sk26p7p")) |
| 32970 | 32970 | ||
| 32971 | (define rust-zxcvbn-3.1.0 | ||
| 32972 | (crate-source "zxcvbn" "3.1.0" | ||
| 32973 | "0v3k3jmh8c5n0jg76m51lkvm3grwpv533i4hdf6nhlxd01dy6xmd")) | ||
| 32974 | |||
| 32971 | (define ssss-separator 'end-of-crates) | 32975 | (define ssss-separator 'end-of-crates) |
| 32972 | 32976 | ||
| 32973 | 32977 | ||
| @@ -65389,6 +65393,78 @@ | |||
| 65389 | rust-windows-x86-64-gnu-0.52.6 | 65393 | rust-windows-x86-64-gnu-0.52.6 |
| 65390 | rust-windows-x86-64-gnullvm-0.52.6 | 65394 | rust-windows-x86-64-gnullvm-0.52.6 |
| 65391 | rust-windows-x86-64-msvc-0.52.6)) | 65395 | rust-windows-x86-64-msvc-0.52.6)) |
| 65396 | (python-zxcvbn-rs-py => | ||
| 65397 | (list rust-aho-corasick-1.1.4 | ||
| 65398 | rust-android-system-properties-0.1.5 | ||
| 65399 | rust-autocfg-1.5.0 | ||
| 65400 | rust-bit-set-0.5.3 | ||
| 65401 | rust-bit-vec-0.6.3 | ||
| 65402 | rust-bumpalo-3.20.2 | ||
| 65403 | rust-cc-1.2.56 | ||
| 65404 | rust-cfg-if-1.0.4 | ||
| 65405 | rust-chrono-0.4.44 | ||
| 65406 | rust-core-foundation-sys-0.8.7 | ||
| 65407 | rust-darling-0.20.11 | ||
| 65408 | rust-darling-core-0.20.11 | ||
| 65409 | rust-darling-macro-0.20.11 | ||
| 65410 | rust-deranged-0.5.8 | ||
| 65411 | rust-derive-builder-0.20.2 | ||
| 65412 | rust-derive-builder-core-0.20.2 | ||
| 65413 | rust-derive-builder-macro-0.20.2 | ||
| 65414 | rust-either-1.15.0 | ||
| 65415 | rust-fancy-regex-0.13.0 | ||
| 65416 | rust-find-msvc-tools-0.1.9 | ||
| 65417 | rust-fnv-1.0.7 | ||
| 65418 | rust-heck-0.5.0 | ||
| 65419 | rust-iana-time-zone-0.1.65 | ||
| 65420 | rust-iana-time-zone-haiku-0.1.2 | ||
| 65421 | rust-ident-case-1.0.1 | ||
| 65422 | rust-indoc-2.0.7 | ||
| 65423 | rust-itertools-0.13.0 | ||
| 65424 | rust-js-sys-0.3.91 | ||
| 65425 | rust-lazy-static-1.5.0 | ||
| 65426 | rust-libc-0.2.183 | ||
| 65427 | rust-log-0.4.29 | ||
| 65428 | rust-memchr-2.8.0 | ||
| 65429 | rust-memoffset-0.9.1 | ||
| 65430 | rust-num-conv-0.2.0 | ||
| 65431 | rust-num-traits-0.2.19 | ||
| 65432 | rust-once-cell-1.21.4 | ||
| 65433 | rust-portable-atomic-1.13.1 | ||
| 65434 | rust-powerfmt-0.2.0 | ||
| 65435 | rust-proc-macro2-1.0.106 | ||
| 65436 | rust-pyo3-0.27.2 | ||
| 65437 | rust-pyo3-build-config-0.27.2 | ||
| 65438 | rust-pyo3-ffi-0.27.2 | ||
| 65439 | rust-pyo3-macros-0.27.2 | ||
| 65440 | rust-pyo3-macros-backend-0.27.2 | ||
| 65441 | rust-quote-1.0.45 | ||
| 65442 | rust-regex-1.12.3 | ||
| 65443 | rust-regex-automata-0.4.14 | ||
| 65444 | rust-regex-syntax-0.8.10 | ||
| 65445 | rust-rustversion-1.0.22 | ||
| 65446 | rust-serde-core-1.0.228 | ||
| 65447 | rust-serde-derive-1.0.228 | ||
| 65448 | rust-shlex-1.3.0 | ||
| 65449 | rust-strsim-0.11.1 | ||
| 65450 | rust-syn-2.0.117 | ||
| 65451 | rust-target-lexicon-0.13.5 | ||
| 65452 | rust-time-0.3.47 | ||
| 65453 | rust-time-core-0.1.8 | ||
| 65454 | rust-unicode-ident-1.0.24 | ||
| 65455 | rust-unindent-0.2.4 | ||
| 65456 | rust-wasm-bindgen-0.2.114 | ||
| 65457 | rust-wasm-bindgen-macro-0.2.114 | ||
| 65458 | rust-wasm-bindgen-macro-support-0.2.114 | ||
| 65459 | rust-wasm-bindgen-shared-0.2.114 | ||
| 65460 | rust-web-sys-0.3.91 | ||
| 65461 | rust-windows-core-0.62.2 | ||
| 65462 | rust-windows-implement-0.60.2 | ||
| 65463 | rust-windows-interface-0.59.3 | ||
| 65464 | rust-windows-link-0.2.1 | ||
| 65465 | rust-windows-result-0.4.1 | ||
| 65466 | rust-windows-strings-0.5.1 | ||
| 65467 | rust-zxcvbn-3.1.0)) | ||
| 65392 | (rabbitmqadmin => | 65468 | (rabbitmqadmin => |
| 65393 | (list rust-addr2line-0.24.2 | 65469 | (list rust-addr2line-0.24.2 |
| 65394 | rust-adler2-2.0.1 | 65470 | rust-adler2-2.0.1 |
