at 23.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pillow 5, xlib 6, six 7, xvfb-run 8, sphinx 9, gobject-introspection 10, pygobject3 11, gtk3 12, libayatana-appindicator }: 13 14buildPythonPackage rec { 15 pname = "pystray"; 16 version = "0.19.2"; 17 18 src = fetchFromGitHub { 19 owner = "moses-palmer"; 20 repo = "pystray"; 21 rev = "v${version}"; 22 sha256 = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs="; 23 }; 24 25 nativeBuildInputs = [ gobject-introspection sphinx ]; 26 propagatedBuildInputs = [ pillow xlib six pygobject3 gtk3 libayatana-appindicator ]; 27 checkInputs = [ xvfb-run ]; 28 29 checkPhase = '' 30 rm tests/icon_tests.py # test needs user input 31 32 xvfb-run -s '-screen 0 800x600x24' python setup.py test 33 ''; 34 35 meta = with lib; { 36 homepage = "https://github.com/moses-palmer/pystray"; 37 description = "This library allows you to create a system tray icon"; 38 license = with licenses; [ gpl3Plus lgpl3Plus ]; 39 platforms = platforms.linux; 40 maintainers = with maintainers; [ jojosch ]; 41 }; 42}