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

64 lines
1.5 KiB
Nix
Raw Normal View History

2021-07-23 04:04:17 +01:00
{ lib
, python3Packages
, fetchFromGitHub
, wrapGAppsHook
, gobject-introspection
, gtksourceview3
, libappindicator-gtk3
, libnotify
}:
2018-06-24 23:25:14 +01:00
python3Packages.buildPythonApplication rec {
2021-07-23 04:04:17 +01:00
pname = "autokey";
version = "0.95.10";
2018-06-24 23:25:14 +01:00
src = fetchFromGitHub {
owner = "autokey";
repo = "autokey";
rev = "v${version}";
2021-07-23 04:04:17 +01:00
sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr";
2018-06-24 23:25:14 +01:00
};
# Tests appear to be broken with import errors within the project structure
doCheck = false;
2021-07-23 04:04:17 +01:00
nativeBuildInputs = [ wrapGAppsHook ];
2018-06-24 23:25:14 +01:00
2021-07-23 04:04:17 +01:00
buildInputs = [
gobject-introspection
gtksourceview3
libappindicator-gtk3
libnotify
];
2018-06-24 23:25:14 +01:00
propagatedBuildInputs = with python3Packages; [
2021-07-23 04:04:17 +01:00
dbus-python
pyinotify
xlib
pygobject3
];
dontWrapGapps = true;
pythonPath = with python3Packages; requiredPythonModules [ dbus-python xlib pygobject3 ];
postInstall = ''
rm $out/bin/autokey-qt
buildPythonPath "$out $pythonPath"
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
# for autokey-shell ModuleNotFoundError: No module named 'autokey'
--prefix "PYTHONPATH" ":" "$out/lib/${python3Packages.python.libPrefix}/site-packages"
--prefix "PYTHONPATH" ":" "$program_PYTHONPATH"
)
'';
2018-06-24 23:25:14 +01:00
meta = {
homepage = "https://github.com/autokey/autokey";
2018-06-24 23:25:14 +01:00
description = "Desktop automation utility for Linux and X11";
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ pneumaticat ];
platforms = lib.platforms.linux;
};
}