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