diff --git a/pkgs/applications/misc/keepmenu/default.nix b/pkgs/applications/misc/keepmenu/default.nix new file mode 100644 index 0000000000000..d169e19a19a5e --- /dev/null +++ b/pkgs/applications/misc/keepmenu/default.nix @@ -0,0 +1,36 @@ +{ lib, python3Packages, python3, xvfb-run }: + +python3Packages.buildPythonApplication rec { + pname = "keepmenu"; + version = "1.2.2"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "SeVNtONH1bn2hb2pBOVM3Oafrb+jARgfvRe7vUu6Gto="; + }; + + preConfigure = '' + export HOME=$TMPDIR + mkdir -p $HOME/.config/keepmenu + cp config.ini.example $HOME/.config/keepmenu/config.ini + ''; + + propagatedBuildInputs = with python3Packages; [ + pykeepass + pynput + ]; + + checkInputs = [ xvfb-run ]; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index da512943f435b..47fee83a9ae5b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8341,6 +8341,8 @@ with pkgs; keepkey_agent = with python3Packages; toPythonApplication keepkey_agent; + keepmenu = callPackage ../applications/misc/keepmenu { }; + kent = callPackage ../applications/science/biology/kent { }; keybase = callPackage ../tools/security/keybase {