2022-11-27 09:42:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pillow
|
|
|
|
, xlib
|
|
|
|
, six
|
|
|
|
, xvfb-run
|
|
|
|
, sphinx
|
|
|
|
, gobject-introspection
|
|
|
|
, pygobject3
|
|
|
|
, gtk3
|
|
|
|
, libayatana-appindicator }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pystray";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "0.19.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moses-palmer";
|
|
|
|
repo = "pystray";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection sphinx ];
|
|
|
|
propagatedBuildInputs = [ pillow xlib six pygobject3 gtk3 libayatana-appindicator ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ 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 ];
|
|
|
|
};
|
|
|
|
}
|