tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
autokey: 0.94.1 -> 0.95.10
Artturin
4 years ago
5ffda0d0
97d0bc38
+39
-14
1 changed file
expand all
collapse all
unified
split
pkgs
applications
office
autokey
default.nix
+39
-14
pkgs/applications/office/autokey/default.nix
···
1
-
{ lib, python3Packages, fetchFromGitHub, wrapGAppsHook, gobject-introspection
2
-
, gtksourceview3, libappindicator-gtk3, libnotify }:
0
0
0
0
0
0
0
3
4
python3Packages.buildPythonApplication rec {
5
-
name = "autokey-${version}";
6
-
version = "0.94.1";
7
8
src = fetchFromGitHub {
9
owner = "autokey";
10
repo = "autokey";
11
rev = "v${version}";
12
-
sha256 = "1syxyciyxzs0khbfs9wjgj03q967p948kipw27j1031q0b5z3jxr";
13
};
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
19
# Tests appear to be broken with import errors within the project structure
20
doCheck = false;
21
22
-
# Note: no dependencies included for Qt GUI because Qt ui is poorly
23
-
# maintained—see https://github.com/autokey/autokey/issues/51
24
25
-
buildInputs = [ wrapGAppsHook gobject-introspection gtksourceview3
26
-
libappindicator-gtk3 libnotify ];
0
0
0
0
27
28
propagatedBuildInputs = with python3Packages; [
29
-
dbus-python pyinotify xlib pygobject3 ];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
30
31
meta = {
32
homepage = "https://github.com/autokey/autokey";
···
1
+
{ lib
2
+
, python3Packages
3
+
, fetchFromGitHub
4
+
, wrapGAppsHook
5
+
, gobject-introspection
6
+
, gtksourceview3
7
+
, libappindicator-gtk3
8
+
, libnotify
9
+
}:
10
11
python3Packages.buildPythonApplication rec {
12
+
pname = "autokey";
13
+
version = "0.95.10";
14
15
src = fetchFromGitHub {
16
owner = "autokey";
17
repo = "autokey";
18
rev = "v${version}";
19
+
sha256 = "0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr";
20
};
0
0
0
0
21
22
# Tests appear to be broken with import errors within the project structure
23
doCheck = false;
24
25
+
nativeBuildInputs = [ wrapGAppsHook ];
0
26
27
+
buildInputs = [
28
+
gobject-introspection
29
+
gtksourceview3
30
+
libappindicator-gtk3
31
+
libnotify
32
+
];
33
34
propagatedBuildInputs = with python3Packages; [
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
+
'';
55
56
meta = {
57
homepage = "https://github.com/autokey/autokey";