Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pystray / default.nix
blobc0ae2be9e7b3495750e86d03b863cc16fdce0e5c
1 { lib, buildPythonPackage, fetchFromGitHub
2 , pillow, xlib, six, xvfb_run, sphinx }:
4 buildPythonPackage rec {
5   pname = "pystray";
6   version = "0.17.3";
8   src = fetchFromGitHub {
9     owner = "moses-palmer";
10     repo = "pystray";
11     rev = "v${version}";
12     sha256 = "sha256-da2ZkehyXrxW5LdMR3K5AEQhiCpx8ygn6eswTC8fsRo=";
13   };
15   nativeBuildInputs = [ sphinx ];
16   propagatedBuildInputs = [ pillow xlib six ];
17   checkInputs = [ xvfb_run ];
19   checkPhase = ''
20     rm tests/icon_tests.py # test needs user input
22     xvfb-run -s '-screen 0 800x600x24' python setup.py test
23   '';
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 = with licenses; [ gpl3Only lgpl3Only ];
29     platforms = platforms.linux;
30     maintainers = with maintainers; [ jojosch ];
31   };