about summary refs log tree commit diff
path: root/pkgs/development/python-modules/argon2-cffi-bindings/default.nix
blob: 4e286daa0ed67dfe3f309ab66dfaa9ce45c13a50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchPypi,
  libargon2,
  cffi,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "argon2-cffi-bindings";
  version = "21.2.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3";
  };

  buildInputs = [ libargon2 ];

  nativeBuildInputs = [
    setuptools-scm
    cffi
  ];

  propagatedBuildInputs = [ cffi ];

  env.ARGON2_CFFI_USE_SYSTEM = 1;

  # tarball doesn't include tests, but the upstream tests are minimal
  doCheck = false;
  pythonImportsCheck = [ "_argon2_cffi_bindings" ];

  meta = with lib; {
    description = "Low-level CFFI bindings for Argon2";
    homepage = "https://github.com/hynek/argon2-cffi-bindings";
    license = licenses.mit;
    maintainers = with maintainers; [ jonringer ];
  };
}