Merge pull request #265439 from ProminentRetail/autokey

This commit is contained in:
Artturi 2023-11-07 02:37:06 +02:00 committed by GitHub
commit 51438bb469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,17 +6,19 @@
, gtksourceview3
, libappindicator-gtk3
, libnotify
, gnome
, wmctrl
}:
python3Packages.buildPythonApplication rec {
pname = "autokey";
version = "0.95.10";
version = "0.96.0";
src = fetchFromGitHub {
owner = "autokey";
repo = "autokey";
rev = "v${version}";
sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr";
hash = "sha256-d1WJLqkdC7QgzuYdnxYhajD3DtCpgceWCAxGrk0KKew=";
};
# Tests appear to be broken with import errors within the project structure
@ -35,8 +37,20 @@ python3Packages.buildPythonApplication rec {
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