anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pykeepass / default.nix
blobb6bac1517114ebf9d64a726f5464921cd5c8b168
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   argon2-cffi,
7   construct,
8   lxml,
9   pycryptodomex,
10   pyotp,
11   unittestCheckHook,
14 buildPythonPackage rec {
15   pname = "pykeepass";
16   version = "4.1.0.post1";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "libkeepass";
21     repo = "pykeepass";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-64is/XoRF/kojqd4jQIAQi1od8TRhiv9uR+WNIGvP2A=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [
29     argon2-cffi
30     construct
31     lxml
32     pycryptodomex
33   ];
35   propagatedNativeBuildInputs = [ argon2-cffi ];
37   nativeCheckInputs = [
38     pyotp
39     unittestCheckHook
40   ];
42   pythonImportsCheck = [ "pykeepass" ];
44   meta = with lib; {
45     homepage = "https://github.com/libkeepass/pykeepass";
46     changelog = "https://github.com/libkeepass/pykeepass/blob/${src.rev}/CHANGELOG.rst";
47     description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
48     license = licenses.gpl3Only;
49     maintainers = with maintainers; [ dotlambda ];
50   };