tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
autokey: 0.94.1 -> 0.95.10
Artturin
4 years ago
5ffda0d0
97d0bc38
+39
-14
1 changed file
expand all
collapse all
unified
split
pkgs
applications
office
autokey
default.nix
+39
-14
pkgs/applications/office/autokey/default.nix
···
1
1
-
{ lib, python3Packages, fetchFromGitHub, wrapGAppsHook, gobject-introspection
2
2
-
, gtksourceview3, libappindicator-gtk3, libnotify }:
1
1
+
{ lib
2
2
+
, python3Packages
3
3
+
, fetchFromGitHub
4
4
+
, wrapGAppsHook
5
5
+
, gobject-introspection
6
6
+
, gtksourceview3
7
7
+
, libappindicator-gtk3
8
8
+
, libnotify
9
9
+
}:
3
10
4
11
python3Packages.buildPythonApplication rec {
5
5
-
name = "autokey-${version}";
6
6
-
version = "0.94.1";
12
12
+
pname = "autokey";
13
13
+
version = "0.95.10";
7
14
8
15
src = fetchFromGitHub {
9
16
owner = "autokey";
10
17
repo = "autokey";
11
18
rev = "v${version}";
12
12
-
sha256 = "1syxyciyxzs0khbfs9wjgj03q967p948kipw27j1031q0b5z3jxr";
19
19
+
sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr";
13
20
};
14
14
-
15
15
-
# Arch requires a similar work around—see
16
16
-
# https://aur.archlinux.org/packages/autokey-py3/?comments=all
17
17
-
patches = [ ./remove-requires-dbus-python.patch ];
18
21
19
22
# Tests appear to be broken with import errors within the project structure
20
23
doCheck = false;
21
24
22
22
-
# Note: no dependencies included for Qt GUI because Qt ui is poorly
23
23
-
# maintained—see https://github.com/autokey/autokey/issues/51
25
25
+
nativeBuildInputs = [ wrapGAppsHook ];
24
26
25
25
-
buildInputs = [ wrapGAppsHook gobject-introspection gtksourceview3
26
26
-
libappindicator-gtk3 libnotify ];
27
27
+
buildInputs = [
28
28
+
gobject-introspection
29
29
+
gtksourceview3
30
30
+
libappindicator-gtk3
31
31
+
libnotify
32
32
+
];
27
33
28
34
propagatedBuildInputs = with python3Packages; [
29
29
-
dbus-python pyinotify xlib pygobject3 ];
35
35
+
dbus-python
36
36
+
pyinotify
37
37
+
xlib
38
38
+
pygobject3
39
39
+
];
40
40
+
41
41
+
dontWrapGapps = true;
42
42
+
43
43
+
pythonPath = with python3Packages; requiredPythonModules [ dbus-python xlib pygobject3 ];
44
44
+
45
45
+
postInstall = ''
46
46
+
rm $out/bin/autokey-qt
47
47
+
buildPythonPath "$out $pythonPath"
48
48
+
makeWrapperArgs+=(
49
49
+
"''${gappsWrapperArgs[@]}"
50
50
+
# for autokey-shell ModuleNotFoundError: No module named 'autokey'
51
51
+
--prefix "PYTHONPATH" ":" "$out/lib/${python3Packages.python.libPrefix}/site-packages"
52
52
+
--prefix "PYTHONPATH" ":" "$program_PYTHONPATH"
53
53
+
)
54
54
+
'';
30
55
31
56
meta = {
32
57
homepage = "https://github.com/autokey/autokey";