2021-07-23 03:04:17 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3,
|
2021-07-23 03:04:17 +00:00
|
|
|
gobject-introspection,
|
|
|
|
gtksourceview3,
|
|
|
|
libappindicator-gtk3,
|
|
|
|
libnotify,
|
2024-06-22 12:28:53 +00:00
|
|
|
zenity,
|
2023-11-06 09:07:35 +00:00
|
|
|
wmctrl,
|
2021-07-23 03:04:17 +00:00
|
|
|
}:
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-07-23 03:04:17 +00:00
|
|
|
pname = "autokey";
|
2023-11-06 09:07:35 +00:00
|
|
|
version = "0.96.0";
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "autokey";
|
|
|
|
repo = "autokey";
|
|
|
|
rev = "v${version}";
|
2023-11-06 09:07:35 +00:00
|
|
|
hash = "sha256-d1WJLqkdC7QgzuYdnxYhajD3DtCpgceWCAxGrk0KKew=";
|
2018-06-24 22:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests appear to be broken with import errors within the project structure
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook3
|
|
|
|
gobject-introspection
|
|
|
|
];
|
2018-06-24 22:25:14 +00:00
|
|
|
|
2021-07-23 03:04:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtksourceview3
|
|
|
|
libappindicator-gtk3
|
|
|
|
libnotify
|
|
|
|
];
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-07-23 03:04:17 +00:00
|
|
|
dbus-python
|
|
|
|
pyinotify
|
|
|
|
xlib
|
|
|
|
pygobject3
|
2023-11-06 09:07:35 +00:00
|
|
|
packaging
|
2021-07-23 03:04:17 +00:00
|
|
|
];
|
|
|
|
|
2023-11-06 09:07:35 +00:00
|
|
|
runtimeDeps = [
|
2024-06-22 12:28:53 +00:00
|
|
|
zenity
|
2023-11-06 09:07:35 +00:00
|
|
|
wmctrl
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(''${gappsWrapperArgs[@]} --prefix PATH : ${lib.makeBinPath runtimeDeps})
|
|
|
|
'';
|
|
|
|
|
2021-07-23 03:04:17 +00:00
|
|
|
postInstall = ''
|
2022-07-04 20:46:43 +00:00
|
|
|
# remove Qt version which we currently do not support
|
|
|
|
rm $out/bin/autokey-qt $out/share/applications/autokey-qt.desktop
|
2021-07-23 03:04:17 +00:00
|
|
|
'';
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/autokey/autokey";
|
2018-06-24 22:25:14 +00:00
|
|
|
description = "Desktop automation utility for Linux and X11";
|
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
maintainers = with lib.maintainers; [ pneumaticat ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|