jellyfin-mpv-shim: 1.10.4 -> 2.0.0

+23 -42
+23 -42
pkgs/applications/video/jellyfin-mpv-shim/default.nix
··· 1 { lib 2 , buildPythonApplication 3 - , copyDesktopItems 4 , fetchPypi 5 - , makeDesktopItem 6 - , flask 7 , jellyfin-apiclient-python 8 , jinja2 9 , mpv 10 , pillow 11 , pydantic 12 - , pyqtwebengine 13 , pystray 14 , python-mpv-jsonipc 15 , pywebview 16 - , qt5 17 , tkinter 18 - , werkzeug 19 }: 20 21 buildPythonApplication rec { 22 pname = "jellyfin-mpv-shim"; 23 - version = "1.10.4"; 24 25 src = fetchPypi { 26 inherit pname version; 27 - sha256 = "sha256-QMyb69S8Ln4X0oUuLpL6vtgxJwq8f+Q4ReNckrN4E+E="; 28 }; 29 30 propagatedBuildInputs = [ ··· 41 # display_mirror dependencies 42 jinja2 43 pywebview 44 - 45 - # desktop dependencies 46 - flask 47 - pyqtwebengine 48 - werkzeug 49 - ]; 50 - 51 - nativeBuildInputs = [ 52 - copyDesktopItems 53 - qt5.wrapQtAppsHook 54 - ]; 55 - 56 - desktopItems = [ 57 - (makeDesktopItem { 58 - name = "Jellyfin Desktop"; 59 - exec = "jellyfin-desktop"; 60 - icon = "jellyfin-desktop"; 61 - desktopName = "jellyfin-desktop"; 62 - comment = "MPV-based desktop and cast client for Jellyfin"; 63 - genericName = "MPV-based desktop and cast client for Jellyfin"; 64 - categories = "Video;AudioVideo;TV;Player"; 65 - }) 66 ]; 67 68 # override $HOME directory: ··· 82 --replace "notify_updates: bool = True" "notify_updates: bool = False" 83 ''; 84 85 - postInstall = '' 86 - mkdir -p $out/share/pixmaps 87 - cp jellyfin_mpv_shim/integration/jellyfin-256.png $out/share/pixmaps/jellyfin-desktop.png 88 - ''; 89 - 90 - postFixup = '' 91 - wrapQtApp $out/bin/jellyfin-desktop 92 - wrapQtApp $out/bin/jellyfin-mpv-desktop 93 - ''; 94 - 95 # no tests 96 doCheck = false; 97 pythonImportsCheck = [ "jellyfin_mpv_shim" ]; 98 99 meta = with lib; { 100 - homepage = "https://github.com/jellyfin/jellyfin-desktop"; 101 description = "Allows casting of videos to MPV via the jellyfin mobile and web app"; 102 - license = licenses.gpl3; 103 maintainers = with maintainers; [ jojosch ]; 104 }; 105 }
··· 1 { lib 2 , buildPythonApplication 3 , fetchPypi 4 , jellyfin-apiclient-python 5 , jinja2 6 , mpv 7 , pillow 8 , pydantic 9 , pystray 10 , python-mpv-jsonipc 11 , pywebview 12 , tkinter 13 }: 14 15 buildPythonApplication rec { 16 pname = "jellyfin-mpv-shim"; 17 + version = "2.0.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 + sha256 = "sha256-YAZnNSzgAGYSb45VINRCPeUUbbtuOp/bLbIqz/90W6g="; 22 }; 23 24 propagatedBuildInputs = [ ··· 35 # display_mirror dependencies 36 jinja2 37 pywebview 38 ]; 39 40 # override $HOME directory: ··· 54 --replace "notify_updates: bool = True" "notify_updates: bool = False" 55 ''; 56 57 # no tests 58 doCheck = false; 59 pythonImportsCheck = [ "jellyfin_mpv_shim" ]; 60 61 meta = with lib; { 62 + homepage = "https://github.com/jellyfin/jellyfin-mpv-shim"; 63 description = "Allows casting of videos to MPV via the jellyfin mobile and web app"; 64 + longDescription = '' 65 + Jellyfin MPV Shim is a client for the Jellyfin media server which plays media in the 66 + MPV media player. The application runs in the background and opens MPV only 67 + when media is cast to the player. The player supports most file formats, allowing you 68 + to prevent needless transcoding of your media files on the server. The player also has 69 + advanced features, such as bulk subtitle updates and launching commands on events. 70 + ''; 71 + license = with licenses; [ 72 + # jellyfin-mpv-shim 73 + gpl3Only 74 + mit 75 + 76 + # shader-pack licenses (github:iwalton3/default-shader-pack) 77 + # KrigBilateral, SSimDownscaler, NNEDI3 78 + gpl3Plus 79 + # Anime4K, FSRCNNX 80 + mit 81 + # Static Grain 82 + unlicense 83 + ]; 84 maintainers = with maintainers; [ jojosch ]; 85 }; 86 }