forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#163667 from Eliot00/keepmenu-init
resolves NixOS#163594
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters