2018-09-12 01:42:17 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2020-08-11 17:16:25 +02:00
|
|
|
, lxml, pycryptodomex, construct
|
2019-03-02 09:57:56 +01:00
|
|
|
, argon2_cffi, dateutil, future
|
2018-09-12 01:42:17 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykeepass";
|
2021-03-24 10:28:22 +01:00
|
|
|
version = "4.0.0";
|
2018-09-12 01:42:17 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:22 +01:00
|
|
|
sha256 = "1b41b3277ea4e044556e1c5a21866ea4dfd36e69a4c0f14272488f098063178f";
|
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
|
2019-03-02 09:57:56 +01:00
|
|
|
argon2_cffi dateutil future
|
2018-09-12 01:42:17 +02:00
|
|
|
];
|
|
|
|
|
2019-03-02 09:57:56 +01:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-09-12 01:42:17 +02:00
|
|
|
meta = {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pschmitt/pykeepass";
|
2018-09-12 01:42:17 +02:00
|
|
|
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|