nixpkgs/pkgs/development/python-modules/fastpbkdf2/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

28 lines
748 B
Nix

{ lib, 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 ];
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ cffi six ];
propagatedNativeBuildInputs = [ cffi ];
meta = with lib; {
homepage = "https://github.com/Ayrx/python-fastpbkdf2";
description = "Python bindings for fastpbkdf2";
license = licenses.bsd3;
maintainers = with maintainers; [ jqueiroz ];
};
}