gnu: Add python-argon2-cffi-bindings.

* gnu/packages/python-crypto.scm (python-argon2-cffi-bindings): New variable.

Change-Id: I5e4e77ba3aba7b35352b556a514a46ff8b735af6
This commit is contained in:
Sharlatan Hellseher 2025-08-05 12:49:20 +01:00
parent 15eaa05da7
commit 10d1f1cd66
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1618,6 +1618,39 @@ both a configurable runtime as well as memory consumption. This means that you
can decide how long it takes to hash a password and how much memory is required.")
(license license:expat)))
(define-public python-argon2-cffi-bindings
(package
(name "python-argon2-cffi-bindings")
(version "25.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "argon2_cffi_bindings" version))
(sha256
(base32 "179256zsrh5c51zmv9k1sc9p102j152nzxqgwhhdhmadxbkg6mxr"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'use-system-argon2
(lambda _
(setenv "ARGON2_CFFI_USE_SYSTEM" "1"))))))
(native-inputs
(list python-pytest
python-setuptools
python-setuptools-scm))
(inputs
(list argon2))
(propagated-inputs
(list python-cffi))
(home-page "https://github.com/hynek/argon2-cffi-bindings")
(synopsis "Low-level CFFI bindings for Argon2")
(description
"argon2-cffi-bindings provides low-level CFFI bindings to the official
implementation of the Argon2 password hashing algorithm.")
(license license:expat)))
(define-public python-privy
(package
(name "python-privy")