2022-11-27 09:42:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pillow
|
|
|
|
, xlib
|
|
|
|
, six
|
|
|
|
, xvfb-run
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-11-27 09:42:12 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, pygobject3
|
|
|
|
, gtk3
|
2023-11-16 04:20:00 +00:00
|
|
|
, 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";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
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
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'sphinx >=1.3.1'" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow
|
|
|
|
xlib
|
|
|
|
six
|
|
|
|
pygobject3
|
|
|
|
gtk3
|
|
|
|
libayatana-appindicator
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|