Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 31 lines 818 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, pillow, xlib, six, xvfb_run, sphinx }: 3 4buildPythonPackage rec { 5 pname = "pystray"; 6 version = "0.16.0"; 7 8 src = fetchFromGitHub { 9 owner = "moses-palmer"; 10 repo = "pystray"; 11 rev = "v${version}"; 12 sha256 = "0q5yqfm5mzffx9vnp9xcnclgjzgs0b7f50i9xmxn1m1iha1zawh1"; 13 }; 14 15 propagatedBuildInputs = [ pillow xlib six ]; 16 nativeBuildInputs = [ sphinx ]; 17 checkInputs = [ xvfb_run ]; 18 19 checkPhase = '' 20 rm tests/icon_tests.py # test needs user input 21 22 xvfb-run -s '-screen 0 800x600x24' python setup.py test 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/moses-palmer/pystray"; 27 description = "This library allows you to create a system tray icon"; 28 license = licenses.lgpl3; 29 maintainers = with maintainers; [ jojosch ]; 30 }; 31}