mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
856 B
Nix
37 lines
856 B
Nix
{ 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
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|