diff --git a/pkgs/applications/video/jellyfin-mpv-shim/default.nix b/pkgs/applications/video/jellyfin-mpv-shim/default.nix index 3a1658a70d2e..78b2343ee6dc 100644 --- a/pkgs/applications/video/jellyfin-mpv-shim/default.nix +++ b/pkgs/applications/video/jellyfin-mpv-shim/default.nix @@ -13,6 +13,7 @@ python, python-mpv-jsonipc, pywebview, + setuptools, tkinter, wrapGAppsHook3, }: @@ -20,7 +21,7 @@ buildPythonApplication rec { pname = "jellyfin-mpv-shim"; version = "2.9.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -33,7 +34,9 @@ buildPythonApplication rec { gobject-introspection ]; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ jellyfin-apiclient-python mpv pillow @@ -61,12 +64,12 @@ buildPythonApplication rec { postPatch = '' substituteInPlace jellyfin_mpv_shim/conf.py \ - --replace "check_updates: bool = True" "check_updates: bool = False" \ - --replace "notify_updates: bool = True" "notify_updates: bool = False" + --replace-fail "check_updates: bool = True" "check_updates: bool = False" \ + --replace-fail "notify_updates: bool = True" "notify_updates: bool = False" # python-mpv renamed to mpv with 1.0.4 substituteInPlace setup.py \ - --replace "python-mpv" "mpv" \ - --replace "mpv-jsonipc" "python_mpv_jsonipc" + --replace-fail "python-mpv" "mpv" \ + --replace-fail "mpv-jsonipc" "python_mpv_jsonipc" ''; # Install all the icons for the desktop item @@ -84,8 +87,6 @@ buildPythonApplication rec { ''; dontWrapGApps = true; - # no tests - doCheck = false; pythonImportsCheck = [ "jellyfin_mpv_shim" ]; desktopItems = [ @@ -113,6 +114,7 @@ buildPythonApplication rec { to prevent needless transcoding of your media files on the server. The player also has advanced features, such as bulk subtitle updates and launching commands on events. ''; + changelog = "https://github.com/jellyfin/jellyfin-mpv-shim/releases/tag/v${version}"; license = with lib.licenses; [ # jellyfin-mpv-shim gpl3Only