unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ian Eure <ian@retrospec.tv>
To: 67120@debbugs.gnu.org
Cc: Ian Eure <ian@retrospec.tv>
Subject: [bug#67120] [PATCH v6 4/5] gnu: Add jellyfin-mpv-shim.
Date: Sun, 25 Feb 2024 14:20:33 -0800	[thread overview]
Message-ID: <ec8c2eec6e2c09b0de04fc6c23d41fc02a808c43.1708899540.git.ian@retrospec.tv> (raw)
In-Reply-To: <cover.1708899540.git.ian@retrospec.tv>

* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

Change-Id: Ie030dee36b1c2afc796f082fdebf909cbddd59da
---
 gnu/packages/video.scm | 75 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 894543d3cc..efb016298b 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -162,6 +162,7 @@ (define-module (gnu packages video)
   #:use-module (gnu packages man)
   #:use-module (gnu packages markup)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages messaging)
   #:use-module (gnu packages music)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages multiprecision)
@@ -2751,6 +2752,80 @@ (define-public smplayer
 the last played position, etc.")
     (license license:gpl2+)))
 
+(define-public jellyfin-mpv-shim
+  (package
+    (name "jellyfin-mpv-shim")
+    (version "2.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-mpv-shim" version))
+       (sha256
+        (base32 "1cy2sfv84k5nw8bqy4aa7v0hdawp7gk5s7wq850xizqk0sz7cipp"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      ;; There's no test suite, but the code is ill-behaved and tries to open
+      ;; network connections at module import time, which makes `python
+      ;; setup.py test' fail.
+      #:tests? #f
+      #:phases #~(modify-phases %standard-phases
+                   ;; sanity-check loads console_scripts endpoints, which
+                   ;; launches the program, which makes the build hang.
+                   ;; disable it.
+                   (delete 'sanity-check)
+                   (add-after 'unpack 'disable-updates
+                     (lambda _
+                       (substitute* "jellyfin_mpv_shim/conf.py"
+                         (("check_updates: bool = True")
+                          "check_updates: bool = False")
+                         (("notify_updates: bool = True")
+                          "notify_updates: bool = False"))))
+                   (add-after 'install 'install-desktop-file
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let* ((out (assoc-ref outputs "out"))
+                              (apps (string-append out "/share/applications"))
+                              (desktop-base "jellyfin_mpv_shim/integration/")
+                              (package-id
+                               "com.github.iwalton3.jellyfin-mpv-shim"))
+                         (for-each (lambda (size)
+                                     (install-file (format #f
+                                                           "~ajellyfin-~a.png"
+                                                           desktop-base size) apps))
+                                   '(256 128 64 48 32 16))
+                         (install-file (string-append desktop-base package-id
+                                                      ".appdata.xml") apps)
+                         (install-file (string-append desktop-base package-id
+                                                      ".desktop") apps) #t))))))
+    (inputs (list `(,python "tk")
+                  python-jellyfin-apiclient
+                  python-jinja2
+                  python-mpv
+                  python-mpv-jsonipc
+                  python-pypresence
+                  python-pystray
+                  python-requests))
+    (home-page "https://github.com/jellyfin/jellyfin-mpv-shim")
+    (synopsis "Cast media from Jellyfin Mobile and Web apps to MPV")
+    (description "Jellyfin MPV Shim is a cross-platform cast client for
+Jellyfin.  It has support for all your advanced media files without
+transcoding, as well as tons of features which set it apart from other
+multimedia clients.")
+    (license (list
+              ;; jellyfin-mpv-shim
+              license:gpl3
+
+              ;; jellyfin-mpv-shim, and Anime4K, FSRCNNX, NVIDIA Image
+              ;; Scaling, AMD FidelityFX Super Resolution, AMD
+              ;; FidelityFX Contrast Adaptive Sharpening shaders.
+              license:expat
+
+              ;; Static Grain shader.
+              license:public-domain
+
+              ;; KrigBilatera, SSimDownscaler, and NNEDI3 shaders.
+              license:lgpl3+))))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





  parent reply	other threads:[~2024-02-25 22:22 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-12  4:13 [bug#67120] [PATCH 0/4] Add jellyfin-mpv-player and deps Ian Eure
2023-11-12  4:16 ` [bug#67120] [PATCH 1/4] gnu: Add python-mpv-jsonipc Ian Eure
2023-11-12  4:16 ` [bug#67120] [PATCH 2/4] gnu: Add python-jellyfin-apiclient Ian Eure
2023-11-12  4:16 ` [bug#67120] [PATCH 3/4] gnu: Add python-pystray Ian Eure
2023-11-12  4:16 ` [bug#67120] [PATCH 4/4] gnu: Add jellyfin-mpv-shim Ian Eure
2023-11-12 17:23 ` [bug#67120] [PATCH v2 1/4] gnu: Add python-mpv-jsonipc Ian Eure
2023-11-12 17:23   ` [bug#67120] [PATCH v2 2/4] gnu: Add python-jellyfin-apiclient Ian Eure
2023-11-12 17:23   ` [bug#67120] [PATCH v2 3/4] gnu: Add python-pystray Ian Eure
2023-11-12 17:23   ` [bug#67120] [PATCH v2 4/4] gnu: Add jellyfin-mpv-shim Ian Eure
2023-11-30  1:54 ` [bug#67120] [PATCH v2 0/4] Add jellyfin-mpv-shim and deps Ian Eure
2023-11-30  1:54   ` [bug#67120] [PATCH v2 1/4] gnu: Add python-mpv-jsonipc Ian Eure
2023-11-30  1:54   ` [bug#67120] [PATCH v2 2/4] gnu: Add python-jellyfin-apiclient Ian Eure
2023-11-30  1:54   ` [bug#67120] [PATCH v2 3/4] gnu: Add python-pystray Ian Eure
2023-11-30  1:54   ` [bug#67120] [PATCH v2 4/4] gnu: Add jellyfin-mpv-shim Ian Eure
2024-02-17 17:20 ` [bug#67120] [PATCH v3 0/4] Add jellyfin-mpv-shim and deps Ian Eure
2024-02-17 17:20   ` [bug#67120] [PATCH v3 1/4] gnu: Add python-mpv-jsonipc Ian Eure
2024-02-17 17:20   ` [bug#67120] [PATCH v3 2/4] gnu: Add python-jellyfin-apiclient Ian Eure
2024-02-17 17:20   ` [bug#67120] [PATCH v3 3/4] gnu: Add python-pystray Ian Eure
2024-02-17 17:20   ` [bug#67120] [PATCH v3 4/4] gnu: Add jellyfin-mpv-shim Ian Eure
2024-02-17 17:49 ` [bug#67120] [PATCH v4 0/4] Add jellyfin-mpv-player and deps Ian Eure
2024-02-17 17:49   ` [bug#67120] [PATCH v4 1/4] gnu: Add python-mpv-jsonipc Ian Eure
2024-02-17 17:49   ` [bug#67120] [PATCH v4 2/4] gnu: Add python-jellyfin-apiclient Ian Eure
2024-02-17 17:49   ` [bug#67120] [PATCH v4 3/4] gnu: Add python-pystray Ian Eure
2024-02-17 17:49   ` [bug#67120] [PATCH v4 4/4] gnu: Add jellyfin-mpv-shim Ian Eure
2024-02-17 19:02 ` [bug#67120] [PATCH v5 0/5] Add jellyfin-mpv-player and deps Ian Eure
2024-02-17 19:02   ` [bug#67120] [PATCH v5 1/5] gnu: Add python-mpv-jsonipc Ian Eure
2024-02-17 19:02   ` [bug#67120] [PATCH v5 2/5] gnu: Add python-jellyfin-apiclient Ian Eure
2024-02-17 19:02   ` [bug#67120] [PATCH v5 3/5] gnu: Add python-pystray Ian Eure
2024-02-17 19:02   ` [bug#67120] [PATCH v5 4/5] gnu: Add jellyfin-mpv-shim Ian Eure
2024-02-17 19:02   ` [bug#67120] [PATCH v5 5/5] gnu: Add home-jellyfin-mpv-shim-service-type Ian Eure
2024-02-21 20:42 ` [bug#67120] [PATCH 0/4] Add jellyfin-mpv-player and deps Sharlatan Hellseher
2024-02-25 22:03   ` Ian Eure
2024-03-10  5:15     ` Ian Eure
2024-02-25 22:20 ` [bug#67120] [PATCH v6 0/5] " Ian Eure
2024-02-25 22:20   ` [bug#67120] [PATCH v6 1/5] gnu: Add python-mpv-jsonipc Ian Eure
2024-02-25 22:20   ` [bug#67120] [PATCH v6 2/5] gnu: Add python-jellyfin-apiclient Ian Eure
2024-02-25 22:20   ` [bug#67120] [PATCH v6 3/5] gnu: Add python-pystray Ian Eure
2024-02-25 22:20   ` Ian Eure [this message]
2024-02-25 22:20   ` [bug#67120] [PATCH v6 5/5] gnu: Add home-jellyfin-mpv-shim-service-type Ian Eure
2024-03-07 19:32 ` [bug#67120] Progress Andreas Enge
2024-03-08 11:57 ` Andreas Enge
2024-03-08 12:10 ` [bug#67120] Done Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec8c2eec6e2c09b0de04fc6c23d41fc02a808c43.1708899540.git.ian@retrospec.tv \
    --to=ian@retrospec.tv \
    --cc=67120@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).