2018-09-12 00:42:17 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2020-08-11 16:16:25 +01:00
|
|
|
, lxml, pycryptodomex, construct
|
2019-03-02 08:57:56 +00:00
|
|
|
, argon2_cffi, dateutil, future
|
2018-09-12 00:42:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykeepass";
|
2020-07-31 09:56:44 +01:00
|
|
|
version = "3.2.1";
|
2018-09-12 00:42:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 09:56:44 +01:00
|
|
|
sha256 = "b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284";
|
2018-09-12 00:42:17 +01:00
|
|
|
};
|
|
|
|
|
2020-08-11 16:16:25 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
2018-09-12 00:42:17 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-08-11 16:16:25 +01:00
|
|
|
lxml pycryptodomex construct
|
2019-03-02 08:57:56 +00:00
|
|
|
argon2_cffi dateutil future
|
2018-09-12 00:42:17 +01:00
|
|
|
];
|
|
|
|
|
2019-03-02 08:57:56 +00:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-09-12 00:42:17 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pschmitt/pykeepass";
|
2018-09-12 00:42:17 +01:00
|
|
|
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|