autokey: 0.94.1 -> 0.95.10

Artturin 5ffda0d0 97d0bc38

+39 -14
+39 -14
pkgs/applications/office/autokey/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub, wrapGAppsHook, gobject-introspection 2 - , gtksourceview3, libappindicator-gtk3, libnotify }: 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 + , wrapGAppsHook 5 + , gobject-introspection 6 + , gtksourceview3 7 + , libappindicator-gtk3 8 + , libnotify 9 + }: 3 10 4 11 python3Packages.buildPythonApplication rec { 5 - name = "autokey-${version}"; 6 - version = "0.94.1"; 12 + pname = "autokey"; 13 + version = "0.95.10"; 7 14 8 15 src = fetchFromGitHub { 9 16 owner = "autokey"; 10 17 repo = "autokey"; 11 18 rev = "v${version}"; 12 - sha256 = "1syxyciyxzs0khbfs9wjgj03q967p948kipw27j1031q0b5z3jxr"; 19 + sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr"; 13 20 }; 14 - 15 - # Arch requires a similar work around—see 16 - # https://aur.archlinux.org/packages/autokey-py3/?comments=all 17 - patches = [ ./remove-requires-dbus-python.patch ]; 18 21 19 22 # Tests appear to be broken with import errors within the project structure 20 23 doCheck = false; 21 24 22 - # Note: no dependencies included for Qt GUI because Qt ui is poorly 23 - # maintained—see https://github.com/autokey/autokey/issues/51 25 + nativeBuildInputs = [ wrapGAppsHook ]; 24 26 25 - buildInputs = [ wrapGAppsHook gobject-introspection gtksourceview3 26 - libappindicator-gtk3 libnotify ]; 27 + buildInputs = [ 28 + gobject-introspection 29 + gtksourceview3 30 + libappindicator-gtk3 31 + libnotify 32 + ]; 27 33 28 34 propagatedBuildInputs = with python3Packages; [ 29 - dbus-python pyinotify xlib pygobject3 ]; 35 + dbus-python 36 + pyinotify 37 + xlib 38 + pygobject3 39 + ]; 40 + 41 + dontWrapGapps = true; 42 + 43 + pythonPath = with python3Packages; requiredPythonModules [ dbus-python xlib pygobject3 ]; 44 + 45 + postInstall = '' 46 + rm $out/bin/autokey-qt 47 + buildPythonPath "$out $pythonPath" 48 + makeWrapperArgs+=( 49 + "''${gappsWrapperArgs[@]}" 50 + # for autokey-shell ModuleNotFoundError: No module named 'autokey' 51 + --prefix "PYTHONPATH" ":" "$out/lib/${python3Packages.python.libPrefix}/site-packages" 52 + --prefix "PYTHONPATH" ":" "$program_PYTHONPATH" 53 + ) 54 + ''; 30 55 31 56 meta = { 32 57 homepage = "https://github.com/autokey/autokey";