50 lines
918 B
Nix
50 lines
918 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
hatch-regex-commit,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
argon2-cffi,
|
|
bcrypt,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pwdlib";
|
|
version = "0.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frankie567";
|
|
repo = "pwdlib";
|
|
tag = "v${version}";
|
|
hash = "sha256-aPrgn5zfKk72QslGzb0acCNnZ7m3lyIBjvu4yhfZhSQ=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-regex-commit
|
|
];
|
|
|
|
dependencies = [
|
|
argon2-cffi
|
|
bcrypt
|
|
];
|
|
|
|
pythonImportsCheck = [ "pwdlib" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
meta = {
|
|
description = "Modern password hashing for Python";
|
|
changelog = "https://github.com/frankie567/pwdlib/releases/tag/v${version}";
|
|
homepage = "https://github.com/frankie567/pwdlib";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|