depot/third_party/nixpkgs/pkgs/development/python-modules/pykeepass/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

51 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
argon2-cffi,
construct,
lxml,
pycryptodomex,
pyotp,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "pykeepass";
version = "4.1.0.post1";
pyproject = true;
src = fetchFromGitHub {
owner = "libkeepass";
repo = "pykeepass";
rev = "refs/tags/v${version}";
hash = "sha256-64is/XoRF/kojqd4jQIAQi1od8TRhiv9uR+WNIGvP2A=";
};
build-system = [ setuptools ];
dependencies = [
argon2-cffi
construct
lxml
pycryptodomex
];
propagatedNativeBuildInputs = [ argon2-cffi ];
nativeCheckInputs = [
pyotp
unittestCheckHook
];
pythonImportsCheck = [ "pykeepass" ];
meta = with lib; {
homepage = "https://github.com/libkeepass/pykeepass";
changelog = "https://github.com/libkeepass/pykeepass/blob/${src.rev}/CHANGELOG.rst";
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}