blob: af8ceeb4b7bed7360ce75398bf99bb61778a81ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{ lib
, python3Packages
, fetchFromGitHub
, wrapGAppsHook
, gobject-introspection
, gtksourceview3
, libappindicator-gtk3
, libnotify
, gnome
, wmctrl
}:
python3Packages.buildPythonApplication rec {
pname = "autokey";
version = "0.96.0";
src = fetchFromGitHub {
owner = "autokey";
repo = "autokey";
rev = "v${version}";
hash = "sha256-d1WJLqkdC7QgzuYdnxYhajD3DtCpgceWCAxGrk0KKew=";
};
# Tests appear to be broken with import errors within the project structure
doCheck = false;
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
buildInputs = [
gtksourceview3
libappindicator-gtk3
libnotify
];
propagatedBuildInputs = with python3Packages; [
dbus-python
pyinotify
xlib
pygobject3
packaging
];
runtimeDeps = [
gnome.zenity
wmctrl
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(''${gappsWrapperArgs[@]} --prefix PATH : ${ lib.makeBinPath runtimeDeps })
'';
postInstall = ''
# remove Qt version which we currently do not support
rm $out/bin/autokey-qt $out/share/applications/autokey-qt.desktop
'';
meta = {
homepage = "https://github.com/autokey/autokey";
description = "Desktop automation utility for Linux and X11";
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ pneumaticat ];
platforms = lib.platforms.linux;
};
}
|