summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fastpbkdf2/default.nix
blob: c81240a916cc4298cb923b50161291da3fce60c9 (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
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  openssl,
  pytest,
  cffi,
  six,
}:

buildPythonPackage rec {
  pname = "fastpbkdf2";
  version = "0.2";
  format = "setuptools";

  # Fetching from GitHub as tests are missing in PyPI
  src = fetchFromGitHub {
    owner = "Ayrx";
    repo = "python-fastpbkdf2";
    rev = "v${version}";
    sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc";
  };

  buildInputs = [ openssl ];
  nativeCheckInputs = [ pytest ];
  propagatedBuildInputs = [
    cffi
    six
  ];
  propagatedNativeBuildInputs = [ cffi ];

  meta = {
    homepage = "https://github.com/Ayrx/python-fastpbkdf2";
    description = "Python bindings for fastpbkdf2";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ jqueiroz ];
  };
}