python311Packages.pystray: fix build
This commit is contained in:
parent
12ff8fb6bc
commit
2c56b087b6
1 changed files with 26 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue