1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 02:26:19 +03:00
nixpkgs/pkgs/development/python-modules/pykeepass/default.nix

39 lines
969 B
Nix
Raw Normal View History

2021-04-30 16:53:36 +02:00
{ lib, fetchFromGitHub, buildPythonPackage
, lxml, pycryptodomex, construct
, argon2_cffi, dateutil, future
2021-04-30 16:53:36 +02:00
, python
2018-09-12 01:42:17 +02:00
}:
buildPythonPackage rec {
pname = "pykeepass";
version = "4.0.0";
2018-09-12 01:42:17 +02:00
2021-04-30 16:53:36 +02:00
src = fetchFromGitHub {
owner = "libkeepass";
repo = "pykeepass";
rev = version;
sha256 = "1zw5hjk90zfxpgq2fz4h5qzw3kmvdnlfbd32gw57l034hmz2i08v";
2018-09-12 01:42:17 +02:00
};
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
2018-09-12 01:42:17 +02:00
propagatedBuildInputs = [
lxml pycryptodomex construct
argon2_cffi dateutil future
2018-09-12 01:42:17 +02:00
];
2021-04-30 16:53:36 +02:00
checkPhase = ''
${python.interpreter} -m unittest tests.tests
'';
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
};
}