2021-07-23 03:04:17 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, gtksourceview3
|
|
|
|
, libappindicator-gtk3
|
|
|
|
, libnotify
|
|
|
|
}:
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-07-23 03:04:17 +00:00
|
|
|
pname = "autokey";
|
|
|
|
version = "0.95.10";
|
2018-06-24 22:25:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "autokey";
|
|
|
|
repo = "autokey";
|
|
|
|
rev = "v${version}";
|
2021-07-23 03:04:17 +00:00
|
|
|
sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr";
|
2018-06-24 22:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests appear to be broken with import errors within the project structure
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-07-04 20:46:43 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|