Merge pull request #248839 from Eliot00/keepmenu-update
keepmenu: 1.3.1 -> 1.4.0
This commit is contained in:
commit
ecfbcc51f2
|
@ -1,28 +1,42 @@
|
||||||
{ lib, python3Packages, fetchPypi, xvfb-run }:
|
{ lib, python3Packages, fetchFromGitHub, xvfb-run, xdotool, dmenu }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "keepmenu";
|
pname = "keepmenu";
|
||||||
version = "1.3.1";
|
version = "1.4.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "firecat53";
|
||||||
hash = "sha256-AGuJY7IirzIjcu/nY9CzeOqU1liwcRijYLi8hGN/pRg=";
|
repo = "keepmenu";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-3vFg+9Nw+NhuPJbrmBahXwa13wXlBg5IMYwJ+unn88k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
nativeBuildInputs = with python3Packages; [
|
||||||
export HOME=$TMPDIR
|
hatchling
|
||||||
mkdir -p $HOME/.config/keepmenu
|
hatch-vcs
|
||||||
cp config.ini.example $HOME/.config/keepmenu/config.ini
|
];
|
||||||
'';
|
|
||||||
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pykeepass
|
pykeepass
|
||||||
pynput
|
pynput
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ xvfb-run ];
|
nativeCheckInputs = [ xvfb-run xdotool dmenu ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/keepmenu-config.ini tests/tests.py \
|
||||||
|
--replace "/usr/bin/dmenu" "dmenu"
|
||||||
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
xvfb-run python setup.py test
|
runHook preCheck
|
||||||
|
|
||||||
|
xvfb-run python tests/tests.py
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "keepmenu" ];
|
pythonImportsCheck = [ "keepmenu" ];
|
||||||
|
@ -32,5 +46,6 @@ python3Packages.buildPythonApplication rec {
|
||||||
description = "Dmenu/Rofi frontend for Keepass databases";
|
description = "Dmenu/Rofi frontend for Keepass databases";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ elliot ];
|
maintainers = with maintainers; [ elliot ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue