2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, xvfb-run }:
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "keepmenu";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.3.1";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2022-11-27 09:42:12 +00:00
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-AGuJY7IirzIjcu/nY9CzeOqU1liwcRijYLi8hGN/pRg=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
mkdir -p $HOME/.config/keepmenu
|
|
|
|
cp config.ini.example $HOME/.config/keepmenu/config.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pykeepass
|
|
|
|
pynput
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ xvfb-run ];
|
2022-11-27 09:42:12 +00:00
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run python setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "keepmenu" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/firecat53/keepmenu";
|
|
|
|
description = "Dmenu/Rofi frontend for Keepass databases";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ elliot ];
|
|
|
|
};
|
|
|
|
}
|