2021-05-03 20:48:10 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
2020-08-20 17:08:02 +00:00
|
|
|
, lxml, pycryptodomex, construct
|
2023-10-09 19:29:22 +00:00
|
|
|
, argon2-cffi, python-dateutil
|
2021-05-03 20:48:10 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykeepass";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.0.6";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libkeepass";
|
|
|
|
repo = "pykeepass";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-832cTVzI/MFdwiw6xWzRG35z3iwqb5Qpf6W6XYBIFWs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
lxml pycryptodomex construct
|
2023-10-09 19:29:22 +00:00
|
|
|
argon2-cffi python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedNativeBuildInputs = [ argon2-cffi ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest tests.tests
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [ "pykeepass" ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/libkeepass/pykeepass";
|
2022-06-16 17:23:12 +00:00
|
|
|
changelog = "https://github.com/libkeepass/pykeepass/blob/${src.rev}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|