python312Packages.pwdlib: init at 0.2.1

This commit is contained in:
emaryn 2025-06-17 11:46:36 +08:00 committed by emaryn
parent 1f622956bd
commit 2f23cfb714
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{
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; [ emaryn ];
};
}

View File

@ -11950,6 +11950,8 @@ self: super: with self; {
pvo = callPackage ../development/python-modules/pvo { };
pwdlib = callPackage ../development/python-modules/pwdlib { };
pweave = callPackage ../development/python-modules/pweave { };
pwinput = callPackage ../development/python-modules/pwinput { };