My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pykeepass/default.nix

40 lines
1.0 KiB

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