nixpkgs/pkgs/development/python-modules/pykeepass/default.nix

39 lines
982 B
Nix
Raw Normal View History

2021-04-30 14:53:36 +00:00
{ lib, fetchFromGitHub, buildPythonPackage
, lxml, pycryptodomex, construct
, argon2_cffi, python-dateutil, future
2021-04-30 14:53:36 +00:00
, python
2018-09-11 23:42:17 +00:00
}:
buildPythonPackage rec {
pname = "pykeepass";
version = "4.0.1";
2018-09-11 23:42:17 +00:00
2021-04-30 14:53:36 +00:00
src = fetchFromGitHub {
owner = "libkeepass";
repo = "pykeepass";
rev = version;
sha256 = "sha256-D+loaPBpKdXyiqpdth3ANDjH6IewuKYhj/DzRE2hDn4=";
2018-09-11 23:42:17 +00:00
};
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
2018-09-11 23:42:17 +00:00
propagatedBuildInputs = [
lxml pycryptodomex construct
argon2_cffi python-dateutil future
2018-09-11 23:42:17 +00:00
];
2021-04-30 14:53:36 +00:00
checkPhase = ''
${python.interpreter} -m unittest tests.tests
'';
2021-04-30 14:53:36 +00:00
meta = with lib; {
homepage = "https://github.com/libkeepass/pykeepass";
changelog = "https://github.com/libkeepass/pykeepass/blob/${version}/CHANGELOG.rst";
2018-09-11 23:42:17 +00:00
description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)";
2021-04-30 14:53:36 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda ];
2018-09-11 23:42:17 +00:00
};
}