1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 hatch-regex-commit,
7 pytestCheckHook,
8 pytest-cov-stub,
9 argon2-cffi,
10 bcrypt,
11}:
12
13buildPythonPackage rec {
14 pname = "pwdlib";
15 version = "0.2.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "frankie567";
20 repo = "pwdlib";
21 tag = "v${version}";
22 hash = "sha256-aPrgn5zfKk72QslGzb0acCNnZ7m3lyIBjvu4yhfZhSQ=";
23 };
24
25 build-system = [
26 hatchling
27 hatch-regex-commit
28 ];
29
30 dependencies = [
31 argon2-cffi
32 bcrypt
33 ];
34
35 pythonImportsCheck = [ "pwdlib" ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-cov-stub
40 ];
41
42 meta = {
43 description = "Modern password hashing for Python";
44 changelog = "https://github.com/frankie567/pwdlib/releases/tag/v${version}";
45 homepage = "https://github.com/frankie567/pwdlib";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ ];
48 };
49}