summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/argon2-cffi/default.nix
blob: a27251feff5722c660d10ded37a329555fd2fef0 (plain)
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
42
43
44
{
  hypothesis,
  pytestCheckHook,
  buildPythonPackage,
  fetchPypi,
  lib,
  hatchling,
  hatch-vcs,
  hatch-fancy-pypi-readme,
  argon2-cffi-bindings,
}:

buildPythonPackage rec {
  pname = "argon2-cffi";
  version = "25.1.0";
  pyproject = true;

  src = fetchPypi {
    pname = "argon2_cffi";
    inherit version;
    hash = "sha256-aUrlzIpC9MTivyyg5k5R4joEDGpReoUHRoPTlZ4TRsE=";
  };

  nativeBuildInputs = [
    hatchling
    hatch-vcs
    hatch-fancy-pypi-readme
  ];

  propagatedBuildInputs = [ argon2-cffi-bindings ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  pythonImportsCheck = [ "argon2" ];

  meta = {
    description = "Secure Password Hashes for Python";
    homepage = "https://argon2-cffi.readthedocs.io/";
    license = lib.licenses.mit;
  };
}