1 { lib, python3Packages, fetchFromGitHub, xvfb-run, xdotool, dmenu }:
3 python3Packages.buildPythonApplication rec {
8 src = fetchFromGitHub {
12 hash = "sha256-3vFg+9Nw+NhuPJbrmBahXwa13wXlBg5IMYwJ+unn88k=";
15 nativeBuildInputs = with python3Packages; [
20 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
22 propagatedBuildInputs = with python3Packages; [
27 nativeCheckInputs = [ xvfb-run xdotool dmenu ];
30 substituteInPlace tests/keepmenu-config.ini tests/tests.py \
31 --replace "/usr/bin/dmenu" "dmenu"
37 xvfb-run python tests/tests.py
42 pythonImportsCheck = [ "keepmenu" ];
45 homepage = "https://github.com/firecat53/keepmenu";
46 description = "Dmenu/Rofi frontend for Keepass databases";
47 license = licenses.gpl3Only;
48 maintainers = with maintainers; [ elliot ];
49 platforms = platforms.linux;