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

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

53 lines
1.2 KiB
Nix
Raw Normal View History

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;
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 = ''
# 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;
};
}