2020-03-06 07:35:32 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pillow, xlib, six, xvfb_run, sphinx }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pystray";
|
2020-07-22 08:36:09 +00:00
|
|
|
version = "0.16.0";
|
2020-03-06 07:35:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moses-palmer";
|
|
|
|
repo = "pystray";
|
|
|
|
rev = "v${version}";
|
2020-07-22 08:36:09 +00:00
|
|
|
sha256 = "0q5yqfm5mzffx9vnp9xcnclgjzgs0b7f50i9xmxn1m1iha1zawh1";
|
2020-03-06 07:35:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pillow xlib six ];
|
|
|
|
nativeBuildInputs = [ sphinx ];
|
|
|
|
checkInputs = [ 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 = licenses.lgpl3;
|
2020-10-23 16:33:15 +00:00
|
|
|
platforms = platforms.linux;
|
2020-03-06 07:35:32 +00:00
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|