blob: a6d073dbd669d4c0e13b0aa92c9796dc60e52c00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pillow
, xlib
, six
, xvfb-run
, setuptools
, gobject-introspection
, pygobject3
, gtk3
, libayatana-appindicator
}:
buildPythonPackage rec {
pname = "pystray";
version = "0.19.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "moses-palmer";
repo = "pystray";
rev = "v${version}";
hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'sphinx >=1.3.1'" ""
'';
nativeBuildInputs = [
gobject-introspection
setuptools
];
propagatedBuildInputs = [
pillow
xlib
six
pygobject3
gtk3
libayatana-appindicator
];
nativeCheckInputs = [
xvfb-run
];
checkPhase = ''
rm tests/icon_tests.py # test needs user input
xvfb-run -s '-screen 0 800x600x24' python setup.py test
'';
meta = with lib; {
homepage = "https://github.com/moses-palmer/pystray";
description = "This library allows you to create a system tray icon";
license = with licenses; [ gpl3Plus lgpl3Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ jojosch ];
};
}
|