build: PyGObject als Linux-Dep für pystray AppIndicator-Backend

Ohne python-gobject wählt pystray im uv-Venv das _xorg-Backend, das
unter KDE/Wayland kein funktionierendes Tray-Menü liefert. Mit
PyGObject als expliziter Linux-Dep greift pystray._appindicator
(libayatana-appindicator) und das Menü funktioniert.

System-Deps (nicht automatisch): libayatana-appindicator,
gobject-introspection — im README dokumentiert bzw. nachzutragen.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 21:47:12 +02:00
parent 1153890ea9
commit d682003509
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ dependencies = [
"sounddevice>=0.5.0",
"numpy>=2.0.0",
"evdev>=1.7.0; sys_platform == 'linux'",
"PyGObject>=3.50; sys_platform == 'linux'",
"pynput>=1.7.0; sys_platform == 'win32'",
"pywin32>=306; sys_platform == 'win32'",
"pystray>=0.19.0",
Generated
+17
View File
@@ -542,6 +542,12 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/88/95/608f665226bca68b736b79e457fded9a2a38c4f4379a4a7614303d9db3bc/protobuf-7.34.1-py3-none-any.whl", hash = "sha256:bb3812cd53aefea2b028ef42bd780f5b96407247f20c6ef7c679807e9d188f11", size = 170715, upload-time = "2026-03-20T17:34:45.384Z" },
]
[[package]]
name = "pycairo"
version = "1.29.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/22/d9/1728840a22a4ef8a8f479b9156aa2943cd98c3907accd3849fb0d5f82bfd/pycairo-1.29.0.tar.gz", hash = "sha256:f3f7fde97325cae80224c09f12564ef58d0d0f655da0e3b040f5807bd5bd3142", size = 665871, upload-time = "2025-11-11T19:13:01.584Z" }
[[package]]
name = "pycparser"
version = "3.0"
@@ -560,6 +566,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" },
]
[[package]]
name = "pygobject"
version = "3.56.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pycairo" },
]
sdist = { url = "https://files.pythonhosted.org/packages/a2/80/09247a2be28af2c2240132a0af6c1005a2b1d089242b13a2cd782d2de8d7/pygobject-3.56.2.tar.gz", hash = "sha256:b816098969544081de9eecedb94ad6ac59c77e4d571fe7051f18bebcec074313", size = 1409059, upload-time = "2026-03-25T16:14:04.008Z" }
[[package]]
name = "pyinstaller"
version = "6.19.0"
@@ -920,6 +935,7 @@ dependencies = [
{ name = "faster-whisper" },
{ name = "numpy" },
{ name = "pillow" },
{ name = "pygobject", marker = "sys_platform == 'linux'" },
{ name = "pynput", marker = "sys_platform == 'win32'" },
{ name = "pystray" },
{ name = "pywin32", marker = "sys_platform == 'win32'" },
@@ -943,6 +959,7 @@ requires-dist = [
{ name = "faster-whisper", specifier = ">=1.1.0" },
{ name = "numpy", specifier = ">=2.0.0" },
{ name = "pillow", specifier = ">=10.0.0" },
{ name = "pygobject", marker = "sys_platform == 'linux'", specifier = ">=3.50" },
{ name = "pynput", marker = "sys_platform == 'win32'", specifier = ">=1.7.0" },
{ name = "pystray", specifier = ">=0.19.0" },
{ name = "pywin32", marker = "sys_platform == 'win32'", specifier = ">=306" },