From 50bb215478614918fb28b1efbee88f79a3f3a1aa Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 5 Aug 2025 12:49:20 +0100 Subject: [PATCH] gnu: Add python-argon2-cffi-bindings. * gnu/packages/python-crypto.scm (python-argon2-cffi-bindings): New variable. Change-Id: I5e4e77ba3aba7b35352b556a514a46ff8b735af6 --- gnu/packages/python-crypto.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index d5f9fa6c0f58eb53d0fd577106d185c7c9c89581..c35a9bc77b822095f895cb386cb27d5885b361fa 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -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")