2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ cffi six ];
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedNativeBuildInputs = [ cffi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Ayrx/python-fastpbkdf2";
|
|
|
|
description = "Python bindings for fastpbkdf2";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jqueiroz ];
|
|
|
|
};
|
|
|
|
}
|