summary refs log tree commit diff
path: root/pkgs/development/python-modules/fastpbkdf2/default.nix
blob: 568d894805fdae6654db6d2921be0f83a698e68c (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
{ stdenv, fetchFromGitHub, buildPythonPackage
, openssl, pytest, cffi, six }:

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

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

  buildInputs = [ openssl ];
  checkInputs = [ pytest ];
  propagatedBuildInputs = [ cffi six ];

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