1 { lib, buildPythonPackage, fetchFromGitHub
2 , pillow, xlib, six, xvfb_run, sphinx }:
4 buildPythonPackage rec {
8 src = fetchFromGitHub {
9 owner = "moses-palmer";
12 sha256 = "sha256-da2ZkehyXrxW5LdMR3K5AEQhiCpx8ygn6eswTC8fsRo=";
15 nativeBuildInputs = [ sphinx ];
16 propagatedBuildInputs = [ pillow xlib six ];
17 checkInputs = [ xvfb_run ];
20 rm tests/icon_tests.py # test needs user input
22 xvfb-run -s '-screen 0 800x600x24' python setup.py test
26 homepage = "https://github.com/moses-palmer/pystray";
27 description = "This library allows you to create a system tray icon";
28 license = with licenses; [ gpl3Only lgpl3Only ];
29 platforms = platforms.linux;
30 maintainers = with maintainers; [ jojosch ];