mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
jellyfin-mpv-shim: add gapps-wrapper for pystray
Wraps jellyfin-mpv-shim using wrapGAppsHook to support more backends in pystray
This commit is contained in:
parent
aba2c391f1
commit
4814a3b3c7
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, gobject-introspection
|
||||||
, jellyfin-apiclient-python
|
, jellyfin-apiclient-python
|
||||||
, jinja2
|
, jinja2
|
||||||
, mpv
|
, mpv
|
||||||
@ -9,6 +10,7 @@
|
|||||||
, python-mpv-jsonipc
|
, python-mpv-jsonipc
|
||||||
, pywebview
|
, pywebview
|
||||||
, tkinter
|
, tkinter
|
||||||
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
@ -20,6 +22,11 @@ buildPythonApplication rec {
|
|||||||
sha256 = "sha256-JiSC6WjrLsWk3/m/EHq7KNXaJ6rqT2fG9TT1jPvYlK0=";
|
sha256 = "sha256-JiSC6WjrLsWk3/m/EHq7KNXaJ6rqT2fG9TT1jPvYlK0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
wrapGAppsHook
|
||||||
|
gobject-introspection
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jellyfin-apiclient-python
|
jellyfin-apiclient-python
|
||||||
mpv
|
mpv
|
||||||
@ -52,6 +59,12 @@ buildPythonApplication rec {
|
|||||||
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# needed for pystray to access appindicator using GI
|
||||||
|
preFixup = ''
|
||||||
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
|
'';
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user