jellyfin-mpv-shim: 1.10.4 -> 2.0.0
This commit is contained in:
parent
4216cf5aee
commit
6c3ee279fb
@ -1,30 +1,24 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, copyDesktopItems
|
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, makeDesktopItem
|
|
||||||
, flask
|
|
||||||
, jellyfin-apiclient-python
|
, jellyfin-apiclient-python
|
||||||
, jinja2
|
, jinja2
|
||||||
, mpv
|
, mpv
|
||||||
, pillow
|
, pillow
|
||||||
, pydantic
|
, pydantic
|
||||||
, pyqtwebengine
|
|
||||||
, pystray
|
, pystray
|
||||||
, python-mpv-jsonipc
|
, python-mpv-jsonipc
|
||||||
, pywebview
|
, pywebview
|
||||||
, qt5
|
|
||||||
, tkinter
|
, tkinter
|
||||||
, werkzeug
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "jellyfin-mpv-shim";
|
pname = "jellyfin-mpv-shim";
|
||||||
version = "1.10.4";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-QMyb69S8Ln4X0oUuLpL6vtgxJwq8f+Q4ReNckrN4E+E=";
|
sha256 = "sha256-YAZnNSzgAGYSb45VINRCPeUUbbtuOp/bLbIqz/90W6g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -41,28 +35,6 @@ buildPythonApplication rec {
|
|||||||
# display_mirror dependencies
|
# display_mirror dependencies
|
||||||
jinja2
|
jinja2
|
||||||
pywebview
|
pywebview
|
||||||
|
|
||||||
# desktop dependencies
|
|
||||||
flask
|
|
||||||
pyqtwebengine
|
|
||||||
werkzeug
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
copyDesktopItems
|
|
||||||
qt5.wrapQtAppsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
desktopItems = [
|
|
||||||
(makeDesktopItem {
|
|
||||||
name = "Jellyfin Desktop";
|
|
||||||
exec = "jellyfin-desktop";
|
|
||||||
icon = "jellyfin-desktop";
|
|
||||||
desktopName = "jellyfin-desktop";
|
|
||||||
comment = "MPV-based desktop and cast client for Jellyfin";
|
|
||||||
genericName = "MPV-based desktop and cast client for Jellyfin";
|
|
||||||
categories = "Video;AudioVideo;TV;Player";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# override $HOME directory:
|
# override $HOME directory:
|
||||||
@ -82,24 +54,33 @@ buildPythonApplication rec {
|
|||||||
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/share/pixmaps
|
|
||||||
cp jellyfin_mpv_shim/integration/jellyfin-256.png $out/share/pixmaps/jellyfin-desktop.png
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
wrapQtApp $out/bin/jellyfin-desktop
|
|
||||||
wrapQtApp $out/bin/jellyfin-mpv-desktop
|
|
||||||
'';
|
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jellyfin/jellyfin-desktop";
|
homepage = "https://github.com/jellyfin/jellyfin-mpv-shim";
|
||||||
description = "Allows casting of videos to MPV via the jellyfin mobile and web app";
|
description = "Allows casting of videos to MPV via the jellyfin mobile and web app";
|
||||||
license = licenses.gpl3;
|
longDescription = ''
|
||||||
|
Jellyfin MPV Shim is a client for the Jellyfin media server which plays media in the
|
||||||
|
MPV media player. The application runs in the background and opens MPV only
|
||||||
|
when media is cast to the player. The player supports most file formats, allowing you
|
||||||
|
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.
|
||||||
|
'';
|
||||||
|
license = with licenses; [
|
||||||
|
# jellyfin-mpv-shim
|
||||||
|
gpl3Only
|
||||||
|
mit
|
||||||
|
|
||||||
|
# shader-pack licenses (github:iwalton3/default-shader-pack)
|
||||||
|
# KrigBilateral, SSimDownscaler, NNEDI3
|
||||||
|
gpl3Plus
|
||||||
|
# Anime4K, FSRCNNX
|
||||||
|
mit
|
||||||
|
# Static Grain
|
||||||
|
unlicense
|
||||||
|
];
|
||||||
maintainers = with maintainers; [ jojosch ];
|
maintainers = with maintainers; [ jojosch ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user