Skip to content

Commit

Permalink
Merge pull request NixOS#163667 from Eliot00/keepmenu-init
Browse files Browse the repository at this point in the history
resolves NixOS#163594
  • Loading branch information
SuperSandro2000 authored Nov 21, 2022
2 parents f3bf8a1 + 0c5624c commit aaa3164
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/applications/misc/keepmenu/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit aaa3164

Please sign in to comment.