1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 libargon2,
6 cffi,
7 setuptools-scm,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "argon2-cffi-bindings";
13 version = "25.1.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "hynek";
18 repo = "argon2-cffi-bindings";
19 tag = version;
20 hash = "sha256-UDPxwqEpsmByAPM7lz3cxZz8jWwCEdghPlKXt8zQrfc=";
21 };
22
23 buildInputs = [ libargon2 ];
24
25 build-system = [
26 setuptools-scm
27 cffi
28 ];
29
30 dependencies = [ cffi ];
31
32 env.ARGON2_CFFI_USE_SYSTEM = 1;
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "_argon2_cffi_bindings" ];
37
38 meta = with lib; {
39 changelog = "https://github.com/hynek/argon2-cffi-bindings/releases/tag/${src.tag}";
40 description = "Low-level CFFI bindings for Argon2";
41 homepage = "https://github.com/hynek/argon2-cffi-bindings";
42 license = licenses.mit;
43 maintainers = [ ];
44 };
45}