nixpkgs/pkgs/applications/office/autokey/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.4 KiB
Nix
Raw Normal View History

2021-07-23 03:04:17 +00:00
{ lib
, python3Packages
, fetchFromGitHub
, wrapGAppsHook
, gobject-introspection
, gtksourceview3
, libappindicator-gtk3
, libnotify
2023-11-06 09:07:35 +00:00
, gnome
, 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;
nativeBuildInputs = [ wrapGAppsHook 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 = [
gnome.zenity
wmctrl
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(''${gappsWrapperArgs[@]} --prefix PATH : ${ lib.makeBinPath runtimeDeps })
'';
2021-07-23 03:04:17 +00:00
postInstall = ''
# 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 = {
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;
};
}