Commit 4814a3b3 authored by Mats's avatar Mats
Browse files

jellyfin-mpv-shim: add gapps-wrapper for pystray

Wraps jellyfin-mpv-shim using wrapGAppsHook to support more backends in
pystray
parent aba2c391
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
{ lib
, buildPythonApplication
, fetchPypi
, gobject-introspection
, jellyfin-apiclient-python
, jinja2
, mpv
@@ -9,6 +10,7 @@
, python-mpv-jsonipc
, pywebview
, tkinter
, wrapGAppsHook
}:

buildPythonApplication rec {
@@ -20,6 +22,11 @@ buildPythonApplication rec {
    sha256 = "sha256-JiSC6WjrLsWk3/m/EHq7KNXaJ6rqT2fG9TT1jPvYlK0=";
  };

  nativeBuildInputs = [
    wrapGAppsHook
    gobject-introspection
  ];

  propagatedBuildInputs = [
    jellyfin-apiclient-python
    mpv
@@ -52,6 +59,12 @@ buildPythonApplication rec {
      --replace "notify_updates: bool = True" "notify_updates: bool = False"
  '';

  # needed for pystray to access appindicator using GI
  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';
  dontWrapGApps = true;

  # no tests
  doCheck = false;
  pythonImportsCheck = [ "jellyfin_mpv_shim" ];