1{ lib, fetchFromGitHub, buildPythonPackage
2, openssl, pytest, cffi, six }:
3
4buildPythonPackage rec {
5 pname = "fastpbkdf2";
6 version = "0.2";
7
8 # Fetching from GitHub as tests are missing in PyPI
9 src = fetchFromGitHub {
10 owner = "Ayrx";
11 repo = "python-fastpbkdf2";
12 rev = "v${version}";
13 sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc";
14 };
15
16 buildInputs = [ openssl ];
17 checkInputs = [ pytest ];
18 propagatedBuildInputs = [ cffi six ];
19 propagatedNativeBuildInputs = [ cffi ];
20
21 meta = with lib; {
22 homepage = "https://github.com/Ayrx/python-fastpbkdf2";
23 description = "Python bindings for fastpbkdf2";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ jqueiroz ];
26 };
27}