2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, pillow, xlib, six, xvfb-run, sphinx }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pystray";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.17.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moses-palmer";
|
|
|
|
repo = "pystray";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-Rg2bbFTXLc1hXdShUmFxPcJtlcyWhspcjZtJYDSQ6vQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ sphinx ];
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [ pillow xlib six ];
|
2021-05-20 23:08:51 +00:00
|
|
|
checkInputs = [ xvfb-run ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
2020-10-27 00:29:36 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|