tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
keepmenu: 1.3.1 -> 1.4.0
Elliot
2 years ago
bf378019
100a1550
+27
-12
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
keepmenu
default.nix
+27
-12
pkgs/applications/misc/keepmenu/default.nix
···
1
-
{ lib, python3Packages, fetchPypi, xvfb-run }:
2
3
python3Packages.buildPythonApplication rec {
4
pname = "keepmenu";
5
-
version = "1.3.1";
0
6
7
-
src = fetchPypi {
8
-
inherit pname version;
9
-
hash = "sha256-AGuJY7IirzIjcu/nY9CzeOqU1liwcRijYLi8hGN/pRg=";
0
0
10
};
11
12
-
preConfigure = ''
13
-
export HOME=$TMPDIR
14
-
mkdir -p $HOME/.config/keepmenu
15
-
cp config.ini.example $HOME/.config/keepmenu/config.ini
16
-
'';
0
17
18
propagatedBuildInputs = with python3Packages; [
19
pykeepass
20
pynput
21
];
22
23
-
nativeCheckInputs = [ xvfb-run ];
0
0
0
0
0
0
24
checkPhase = ''
25
-
xvfb-run python setup.py test
0
0
0
0
26
'';
27
28
pythonImportsCheck = [ "keepmenu" ];
···
32
description = "Dmenu/Rofi frontend for Keepass databases";
33
license = licenses.gpl3Only;
34
maintainers = with maintainers; [ elliot ];
0
35
};
36
}
···
1
+
{ lib, python3Packages, fetchFromGitHub, xvfb-run, xdotool, dmenu }:
2
3
python3Packages.buildPythonApplication rec {
4
pname = "keepmenu";
5
+
version = "1.4.0";
6
+
format = "pyproject";
7
8
+
src = fetchFromGitHub {
9
+
owner = "firecat53";
10
+
repo = "keepmenu";
11
+
rev = version;
12
+
hash = "sha256-3vFg+9Nw+NhuPJbrmBahXwa13wXlBg5IMYwJ+unn88k=";
13
};
14
15
+
nativeBuildInputs = with python3Packages; [
16
+
hatchling
17
+
hatch-vcs
18
+
];
19
+
20
+
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
21
22
propagatedBuildInputs = with python3Packages; [
23
pykeepass
24
pynput
25
];
26
27
+
nativeCheckInputs = [ xvfb-run xdotool dmenu ];
28
+
29
+
postPatch = ''
30
+
substituteInPlace tests/keepmenu-config.ini tests/tests.py \
31
+
--replace "/usr/bin/dmenu" "dmenu"
32
+
'';
33
+
34
checkPhase = ''
35
+
runHook preCheck
36
+
37
+
xvfb-run python tests/tests.py
38
+
39
+
runHook postCheck
40
'';
41
42
pythonImportsCheck = [ "keepmenu" ];
···
46
description = "Dmenu/Rofi frontend for Keepass databases";
47
license = licenses.gpl3Only;
48
maintainers = with maintainers; [ elliot ];
49
+
platforms = platforms.linux;
50
};
51
}