2021-04-30 16:53:36 +02:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
2020-08-11 17:16:25 +02:00
|
|
|
, lxml, pycryptodomex, construct
|
2021-07-03 13:37:24 +02:00
|
|
|
, argon2_cffi, python-dateutil, future
|
2021-04-30 16:53:36 +02:00
|
|
|
, python
|
2018-09-12 01:42:17 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykeepass";
|
2021-05-22 14:00:48 +02:00
|
|
|
version = "4.0.1";
|
2018-09-12 01:42:17 +02:00
|
|
|
|
2021-04-30 16:53:36 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libkeepass";
|
|
|
|
repo = "pykeepass";
|
|
|
|
rev = version;
|
2021-05-22 14:00:48 +02:00
|
|
|
sha256 = "sha256-D+loaPBpKdXyiqpdth3ANDjH6IewuKYhj/DzRE2hDn4=";
|
2018-09-12 01:42:17 +02:00
|
|
|
};
|
|
|
|
|
2020-08-11 17:16:25 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
2018-09-12 01:42:17 +02:00
|
|
|
propagatedBuildInputs = [
|
2020-08-11 17:16:25 +02:00
|
|
|
lxml pycryptodomex construct
|
2021-07-03 13:37:24 +02:00
|
|
|
argon2_cffi python-dateutil future
|
2018-09-12 01:42:17 +02:00
|
|
|
];
|
|
|
|
|
2021-10-19 23:02:18 -06:00
|
|
|
propagatedNativeBuildInputs = [ argon2_cffi ];
|
|
|
|
|
2021-04-30 16:53:36 +02:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest tests.tests
|
|
|
|
'';
|
2019-03-02 09:57:56 +01:00
|
|
|
|
2021-04-30 16:53:36 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/libkeepass/pykeepass";
|
|
|
|
changelog = "https://github.com/libkeepass/pykeepass/blob/${version}/CHANGELOG.rst";
|
2018-09-12 01:42:17 +02:00
|
|
|
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
|
2021-04-30 16:53:36 +02:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-09-12 01:42:17 +02:00
|
|
|
};
|
|
|
|
}
|