python311Packages.pystray: fix build

This commit is contained in:
Martin Weinelt 2023-09-19 02:09:13 +02:00
parent 12ff8fb6bc
commit 2c56b087b6

View file

@ -5,15 +5,17 @@
, xlib
, six
, xvfb-run
, sphinx
, setuptools
, gobject-introspection
, pygobject3
, gtk3
, libayatana-appindicator }:
, libayatana-appindicator
}:
buildPythonPackage rec {
pname = "pystray";
version = "0.19.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "moses-palmer";
@ -22,9 +24,28 @@ buildPythonPackage rec {
hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs=";
};
nativeBuildInputs = [ gobject-introspection sphinx ];
propagatedBuildInputs = [ pillow xlib six pygobject3 gtk3 libayatana-appindicator ];
nativeCheckInputs = [ xvfb-run ];
postPatch = ''
substituteInPlace setup.py \
--replace "'sphinx >=1.3.1'" ""
'';
nativeBuildInputs = [
gobject-introspection
setuptools
];
propagatedBuildInputs = [
pillow
xlib
six
pygobject3
gtk3
libayatana-appindicator
];
nativeCheckInputs = [
xvfb-run
];
checkPhase = ''
rm tests/icon_tests.py # test needs user input