diff options
author | Kevin Liu <kevin@potatofrom.space> | 2018-06-24 18:25:14 -0400 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-06-25 00:25:14 +0200 |
commit | 3a1033c6d95d2f2dac18b3c8495173716c2b68e3 (patch) | |
tree | 5d06fb66b1b152edba9d6f74d2e40017a31e6a16 | |
parent | f3a155e656858d6b67f7c18bfc8379bf8badc061 (diff) | |
download | nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar.gz nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar.bz2 nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar.lz nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar.xz nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.tar.zst nixpkgs-3a1033c6d95d2f2dac18b3c8495173716c2b68e3.zip |
autokey: init at 0.94.1 (#42355)
-rw-r--r-- | pkgs/applications/office/autokey/default.nix | 38 | ||||
-rw-r--r-- | pkgs/applications/office/autokey/remove-requires-dbus-python.patch | 11 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/applications/office/autokey/default.nix b/pkgs/applications/office/autokey/default.nix new file mode 100644 index 00000000000..fdff39e27f9 --- /dev/null +++ b/pkgs/applications/office/autokey/default.nix @@ -0,0 +1,38 @@ +{ lib, python3Packages, fetchFromGitHub, wrapGAppsHook, gobjectIntrospection +, gtksourceview, gnome3, libappindicator-gtk3, libnotify }: + +python3Packages.buildPythonApplication rec { + name = "autokey-${version}"; + version = "0.94.1"; + + src = fetchFromGitHub { + owner = "autokey"; + repo = "autokey"; + rev = "v${version}"; + sha256 = "1syxyciyxzs0khbfs9wjgj03q967p948kipw27j1031q0b5z3jxr"; + }; + + # Arch requires a similar work around—see + # https://aur.archlinux.org/packages/autokey-py3/?comments=all + patches = [ ./remove-requires-dbus-python.patch ]; + + # Tests appear to be broken with import errors within the project structure + doCheck = false; + + # Note: no dependencies included for Qt GUI because Qt ui is poorly + # maintained—see https://github.com/autokey/autokey/issues/51 + + buildInputs = [ wrapGAppsHook gobjectIntrospection gnome3.gtksourceview + libappindicator-gtk3 libnotify ]; + + propagatedBuildInputs = with python3Packages; [ + dbus-python pyinotify xlib pygobject3 ]; + + meta = { + homepage = https://github.com/autokey/autokey; + description = "Desktop automation utility for Linux and X11"; + license = with lib.licenses; [ gpl3 ]; + maintainers = with lib.maintainers; [ pneumaticat ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/applications/office/autokey/remove-requires-dbus-python.patch b/pkgs/applications/office/autokey/remove-requires-dbus-python.patch new file mode 100644 index 00000000000..73372e43529 --- /dev/null +++ b/pkgs/applications/office/autokey/remove-requires-dbus-python.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -71,7 +71,7 @@ + 'console_scripts': ['autokey-gtk=autokey.gtkui.__main__:main'] + }, + scripts=['autokey-qt', 'autokey-run', 'autokey-shell'], +- install_requires=['dbus-python', 'pyinotify', 'python3-xlib'], ++ install_requires=['pyinotify', 'python-xlib'], + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7c5ecb49bc3..871949df7ba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15009,6 +15009,8 @@ with pkgs; audio-recorder = callPackage ../applications/audio/audio-recorder { }; + autokey = callPackage ../applications/office/autokey { }; + autotrace = callPackage ../applications/graphics/autotrace {}; avocode = callPackage ../applications/graphics/avocode {}; |