567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
789 B
Nix
39 lines
789 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|