GNU bug report logs - #67120
[PATCH 0/4] Add jellyfin-mpv-player and deps

Previous Next

Package: guix-patches;

Reported by: Ian Eure <ian <at> retrospec.tv>

Date: Sun, 12 Nov 2023 04:15:02 UTC

Severity: normal

Tags: patch

Done: Ian Eure <ian <at> retrospec.tv>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67120 in the body.
You can then email your comments to 67120 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Eure <ian <at> retrospec.tv>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 12 Nov 2023 04:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: guix-patches <at> gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 0/4] Add jellyfin-mpv-player and deps
Date: Sat, 11 Nov 2023 20:13:13 -0800
This patchset adds jellyfin-mpv-shim and a handful of Python dependencies it needs.

Ian Eure (4):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.

 gnu/packages/python-xyz.scm | 61 +++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 41 +++++++++++++++++++++++++
 2 files changed, 102 insertions(+)


base-commit: af6105afc67a15a491a0a4fd18a28c9f801a0b94
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 01/14] gnu: Add emacs-dnt.
Date: Sat, 11 Nov 2023 20:16:01 -0800
* gnu/packages/emacs-xyz.scm (emacs-dnt): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1319c353cb..4648432441 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -135,6 +135,7 @@
 ;;; Copyright © 2023 Sergiu Ivanov <sivanov <at> colimite.fr>
 ;;; Copyright © 2023 Camilo Q.S. (Distopico) <distopico <at> riseup.net>
 ;;; Copyright © 2023 Thanos Apollo <public <at> thanosapollo.com>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3294,6 +3295,30 @@ (define-public emacs-eww-lnum
 incrementally confined in Isearch manner.")
     (license license:gpl3+)))
 
+(define-public emacs-dnt
+  (let ((commit "d28d232d682094ab79cfa78c97668c6ebd327c8c")
+        (version "0.0.1")
+        (revision "1"))
+    (package
+      (name "emacs-dnt")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/dnt.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1bls9j1ibw0npjapslbrh6nmlbn3d4ajhjygsqlf6h9qg12sxm3r"))))
+      (inputs (list emacs-s))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/dnt")
+      (synopsis "Strip trackers from URLs")
+      (description "Prevent advertisers from tracking you when you open
+URLs (or listen to podcasts) in Emacs.")
+      (license (list license:gpl3+)))))
+
 
 
 ;;;
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 1/4] gnu: Add python-mpv-jsonipc.
Date: Sat, 11 Nov 2023 20:16:02 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: I7aa01f25d873faa2a7dd8aa6ea54a1a3ae91006f
---
 gnu/packages/python-xyz.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e521c1580d..6669a6ab73 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -145,6 +145,7 @@
 ;;; Copyright © c4droid <c4droid <at> foxmail.com>
 ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <attila <at> lendvai.name>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24652,6 +24653,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:02 GMT) Full text and rfc822 format available.

Message #14 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 02/14] gnu: Add emacs-geoclue.
Date: Sat, 11 Nov 2023 20:16:03 -0800
* gnu/packages/emacs-xyz.scm (emacs-geoclue): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4648432441..0f2e8f20a6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5047,6 +5047,29 @@ (define-public emacs-google-maps
 directly inside Emacs.  It requires a Google Map Static API key to function.")
       (license license:gpl3+))))
 
+(define-public emacs-geoclue
+  (let ((commit "f409b544be4d2cfd848f4658618374b0bc76cb3c")
+        (version "0.8.1")
+        (revision "1"))
+    (package
+      (name "emacs-geoclue")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/geoclue.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1ggyn9rvc6si3xy1rrw2f2hyw6cys4bgb9v0ah0qq65y3dnziq6m"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/geoclue")
+      (synopsis "Determine your current location using GeoClue2 over D-Bus")
+      (description "An Emacs library which lets you determine your current
+location using GeoClue2 over D-Bus.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-nominatim
   (let ((revision "0")
         (commit "f814e16f8f4e2cfd633f52b29699a009ab704fbf"))
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:02 GMT) Full text and rfc822 format available.

Message #17 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 2/4] gnu: Add python-jellyfin-apiclient.
Date: Sat, 11 Nov 2023 20:16:04 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: I9c2401a951fe6b980c449f7707c7275b5585ae10
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6669a6ab73..9beebc5358 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24669,6 +24669,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/iwalton3/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:03 GMT) Full text and rfc822 format available.

Message #20 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 03/14] gnu: Add emacs-9lc-mode.
Date: Sat, 11 Nov 2023 20:16:05 -0800
* gnu/packages/emacs-xyz.scm (emacs-9lc-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0f2e8f20a6..6980ea4ca6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9819,6 +9819,31 @@ (define-public emacs-sbt-mode
 navigation to errors.")
     (license license:gpl3+)))
 
+(define-public emacs-9lc-mode
+  (let ((commit "7871476488fc7b66e05714797a9a5b8275988662")
+        (version "0.7")
+        (revision "1"))
+    (package
+      (name "emacs-9lc-mode")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/9lc-mode.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1kmx0c413yvvaq33v7lf3gzdjpxkr5faa1wj2j0m25lyyz8dsdm7"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/geoclue")
+      (synopsis "Major mode for editing Fluke 9000 scripts")
+      (description
+       "This is a major mode for editing Fluke 9010a \"9LC\"
+source code.  This is a scripting language used to control Fluke’s 9000 series
+of microsystem troubleshooters.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-scheme-complete
   ;; Upstream does not provide tags.  The commit below corresponds to the
   ;; exact version update.  Version is extracted from main file.
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:03 GMT) Full text and rfc822 format available.

Message #23 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 3/4] gnu: Add python-pystray.
Date: Sat, 11 Nov 2023 20:16:06 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: Ia6ef6388b76db59640914b80ee756d98f5e3e5eb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9beebc5358..8c43be75c3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30439,6 +30439,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray.git")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:04 GMT) Full text and rfc822 format available.

Message #26 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 04/14] gnu: Add emacs-tl1-mode.
Date: Sat, 11 Nov 2023 20:16:07 -0800
* gnu/packages/emacs-xyz.scm (emacs-tl1-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6980ea4ca6..118083c570 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9844,6 +9844,31 @@ (define-public emacs-9lc-mode
 of microsystem troubleshooters.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-tl1-mode
+  (let ((commit "48d12893cc81d7f92dc7b603d3751d8512ed0eb0")
+        (version "1.3")
+        (revision "1"))
+    (package
+      (name "emacs-tl1-mode")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/tl1-mode.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1mf0wqbn9h0353hkhcykzrm2dk1jvyijqs4hsvgj3kwp1whws7br"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/geoclue")
+      (synopsis "Major mode for editing Fluke 9100 TL/1 source code")
+      (description
+       "This is a major mode for editing Fluke TL/1 source
+code.  TL/1 is a language used to control Fluke’s 9100 series of testing &
+troubleshooting mainframes.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-scheme-complete
   ;; Upstream does not provide tags.  The commit below corresponds to the
   ;; exact version update.  Version is extracted from main file.
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:04 GMT) Full text and rfc822 format available.

Message #29 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 09/14] gnu: Add emacs-exwm-ss.
Date: Sat, 11 Nov 2023 20:16:13 -0800
* gnu/packages/emacs-xyz.scm (emacs-exwm-ss): New variable.

Change-Id: Ia3d8d0712b08bd93290d6144dbcf69b6b577654a
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0d0c6cd71a..9bf806f470 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31402,6 +31402,30 @@ (define-public emacs-exwm-firefox
 navigation controls.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-exwm-ss
+  (let ((commit "b11d3df7a50c39b4e1b92ef8a6685cf80b53912c")
+        (version "0.1")
+        (revision "1"))
+    (package
+      (name "emacs-exwm-ss")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/exwm-ss.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "045b0cjycf7nf52ap89w5dz16l1qyh940qxwvdi76v6al78amrap"))))
+
+      (build-system emacs-build-system)
+      (inputs (list emacs-exwm))
+      (home-page "https://codeberg.org/emacs-weirdware/exwm-ss")
+      (synopsis "Automatically inhibit screensaver activation in EXWM")
+      (description "Automatically inhibit screensaver activation in EXWM.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-ert-async
   (package
     (name "emacs-ert-async")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:04 GMT) Full text and rfc822 format available.

Message #32 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 10/14] gnu: Add emacs-debase.
Date: Sat, 11 Nov 2023 20:16:14 -0800
* gnu/packages/emacs-xyz.scm (emacs-debase): New variable.

Change-Id: Idab93a2e2f0834b041792beb41790c725be1e16d
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9bf806f470..a36852ccdc 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -34903,6 +34903,34 @@ (define-public emacs-helm-linux-disks
       (home-page "https://github.com/Akirak/helm-linux-disks")
       (license license:gpl3+))))
 
+(define-public emacs-debase
+  (let ((commit "0b6fc2af3440d68798e3a85d4c889341aae07936")
+        (version "0.7")
+        (revision "1"))
+    (package
+      (name "emacs-debase")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/debase.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "112vk1svnc6516vhs47sx5jw6bg8lwrc15l99dxj0sc313lxjy3k"))))
+
+      (build-system emacs-build-system)
+      (inputs (list))
+      (home-page "https://codeberg.org/emacs-weirdware/debase")
+      (synopsis "D-Bus convenience layer for Emacs")
+      (description
+       "Debase frees you from writing repetitive, annoying
+boilerplate code to drive D-Bus services by throwing another pile of
+abstraction at the problem, in the form of unreadably dense, macro-heavy,
+profoundly cursed Lisp.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-psession
   (let ((commit "3e97267c92b164584e06a6c70ee7491714c7c12c")
         (revision "1"))
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:05 GMT) Full text and rfc822 format available.

Message #35 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 05/14] gnu: Add emacs-diss.
Date: Sat, 11 Nov 2023 20:16:09 -0800
* gnu/packages/emacs-xyz.scm (emacs-diss): New variable.
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 118083c570..aa9227f54a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17846,6 +17846,30 @@ (define-public emacs-dired-git-info
 information inside the Dired buffer.")
       (license license:gpl3+))))
 
+(define-public emacs-diss
+  (let ((commit "8a99a1b34de4575087da49fe1e19bcf33ac49f46")
+        (version "1.0.0")
+        (revision "1"))
+    (package
+      (name "emacs-diss")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/diss.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "06xvl85dkp3c2cw41f2gy7db2d7fy5pv5w1wr7vd7ccdlg3fq4gc"))))
+
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/diss")
+      (synopsis "Dired Image Slideshow")
+      (description "Diss is a full-featured image slideshow for Emacs, based
+on Dired and image-mode.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-dired-toggle-sudo
   (let ((commit "13bbe52c54893f5aa3e56228450ffdd0c9e1d169")
         (revision "0"))
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:05 GMT) Full text and rfc822 format available.

Message #38 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 11/14] gnu: Add emacs-discomfort.
Date: Sat, 11 Nov 2023 20:16:15 -0800
* gnu/packages/emacs-xyz.scm (emacs-discomfort): New variable.
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a36852ccdc..eca8a868c4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -34931,6 +34931,30 @@ (define-public emacs-debase
 profoundly cursed Lisp.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-discomfort
+  (let ((commit "873eea833bbae7196b92bb1102494b8bf5dc5df6")
+        (version "0")
+        (revision "1"))
+    (package
+      (name "emacs-discomfort")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/discomfort.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "01p4bfiasqxfmp9x1bxdc7763bh712d3vlp2014y8pzrwb1jqdaq"))))
+
+      (build-system emacs-build-system)
+      (inputs (list emacs-debase))
+      (home-page "https://codeberg.org/emacs-weirdware/discomfort")
+      (synopsis "UDisks2 UI for Emacs, to mount & unmount disks")
+      (description "UDisks2 UI for Emacs, to mount & unmount disks")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-psession
   (let ((commit "3e97267c92b164584e06a6c70ee7491714c7c12c")
         (revision "1"))
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:06 GMT) Full text and rfc822 format available.

Message #41 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 06/14] gnu: Add emacs-exwm-mff.
Date: Sat, 11 Nov 2023 20:16:10 -0800
* gnu/packages/emacs-xyz.scm (emacs-exwm-mff): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index aa9227f54a..faa6fd0e5a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31305,6 +31305,29 @@ (define-public emacs-exwm-edit
 invoked.")
       (license license:gpl3+))))
 
+(define-public emacs-exwm-mff
+  (let ((commit "89206f2e3189f589c27c56bd2b6203e906ee7100")
+        (version "1.2.1")
+        (revision "1"))
+    (package
+      (name "emacs-exwm-mff")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/exwm-mff.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0ipmapyd4jmpnk34wk9kfbvqnl04x74yg2pmj298wqa61ylw1n9j"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/exwm-mff")
+      (synopsis "Mouse follows focus for EXWM")
+      (description "When an Emacs window is focused, warp the mouse pointer to
+it.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-exwm-modeline
   (package
     (name "emacs-exwm-modeline")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:06 GMT) Full text and rfc822 format available.

Message #44 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 4/4] gnu: Add jellyfin-mpv-shim.
Date: Sat, 11 Nov 2023 20:16:08 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 68581301a2..66468e3dba 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2023 Ott Joon <oj <at> vern.cc>
 ;;; Copyright © 2023 Dominik Delgado Steuter <dds <at> disroot.org>
 ;;; Copyright © 2023 Saku Laesvuori <saku <at> laesvuori.fi>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2406,6 +2407,46 @@ (define-public smplayer
 the last played position, etc.")
     (license license:gpl2+)))
 
+(define-public jellyfin-mpv-shim
+  (let ((desktop-base "jellyfin_mpv_shim/integration/")
+        (package-id "com.github.iwalton3.jellyfin-mpv-shim"))
+  (package
+    (name "python-jellyfin-mpv-shim")
+    (version "2.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-mpv-shim" version))
+       (sha256
+        (base32 "1cy2sfv84k5nw8bqy4aa7v0hdawp7gk5s7wq850xizqk0sz7cipp"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ;Disabled because they seem to boot the UI
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'sanity-check) ;This also seems to boot the UI
+                   (add-after 'install 'install-desktop-file
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let* ((out (assoc-ref outputs "out"))
+                              (apps (string-append out "/share/applications")))
+                         (install-file
+                          (string-append desktop-base package-id ".appdata.xml")
+                          apps)
+                         (install-file
+                          (string-append desktop-base package-id ".desktop")
+                          apps) #t))))))
+    (native-inputs (list xorg-server-for-tests))
+    (propagated-inputs (list `(,python "tk")
+                             python-jellyfin-apiclient
+                             python-mpv
+                             python-mpv-jsonipc
+                             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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+    (license license:gpl2))))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:06 GMT) Full text and rfc822 format available.

Message #47 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 12/14] gnu: Add emacs-shell-here.
Date: Sat, 11 Nov 2023 20:16:16 -0800
* gnu/packages/emacs-xyz.scm (emacs-shell-here): New variable.
---
 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index eca8a868c4..c80ed1b28a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36484,6 +36484,33 @@ (define-public emacs-shell-pop
 you use some other configuration.")
       (license license:gpl3+))))
 
+(define-public emacs-shell-here
+  (let ((commit "eeb437ff26d62a5009046b1b3b4503b768e3131a")
+        (version "1.3")
+        (revision "1"))
+    (package
+      (name "emacs-shell-here")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/shell-here.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0x8lnybxj7k6wj941lgqmm57f3qqnmb0gc7573l1fxwfhf39fl20"))))
+
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/shell-here")
+      (synopsis "Launch a shell relative to default-directory")
+      (description
+       "Open a shell buffer in (or relative to) default-directory,
+e.g. whatever directory the current buffer is in.  If you have projectile or
+find-file-in-project installed, you can also move around relative to the root
+of the current project.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-tshell
   ;; XXX: Upstream has no tagged release.  Version is extracted from keyword
   ;; in main file.
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:07 GMT) Full text and rfc822 format available.

Message #50 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 07/14] gnu: Add emacs-exwm-firefox-core.
Date: Sat, 11 Nov 2023 20:16:11 -0800
* gnu/packages/emacs-xyz.scm (emacs-exwm-firefox-core): New variable.
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index faa6fd0e5a..e565dc1d7c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31349,6 +31349,32 @@ (define-public emacs-exwm-modeline
 workspaces.")
     (license license:gpl3+)))
 
+(define-public emacs-exwm-firefox-core
+  (let ((commit "e2fe2a895e8f973307ef52f8c9976b26e701cbd0")
+        (version "1.0")
+        (revision "1"))
+    (package
+      (name "emacs-exwm-firefox-core")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/walseb/exwm-firefox-core.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0k5jkjzx6f8nfmbkc61raj585p9pymycgzv7rr3fhv2drgkaa4yi"))))
+
+      (inputs (list emacs-exwm))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/walseb/exwm-firefox-core")
+      (synopsis "Control Firefox with EXWM")
+      (description
+       "This package contains functions that execute exwm
+keypresses mapped in firefox to the action described in the function name.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-ert-async
   (package
     (name "emacs-ert-async")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:07 GMT) Full text and rfc822 format available.

Message #53 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 13/14] gnu: Add emacs-hyperspace.
Date: Sat, 11 Nov 2023 20:16:17 -0800
* gnu/packages/emacs-xyz.scm (emacs-hyperspace): New variable.
---
 gnu/packages/emacs-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c80ed1b28a..0152f7c432 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36511,6 +36511,35 @@ (define-public emacs-shell-here
 of the current project.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-hyperspace
+  (let ((commit "f574d07fd8715e806ba4f0487b73c699963baed3")
+        (version "0.8.5")
+        (revision "1"))
+    (package
+      (name "emacs-hyperspace")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/hyperspace.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "19h3d12a99i7a92k3iw4zmjmw3dazsgnkc6j4965h033r1s40amx"))))
+
+      (build-system emacs-build-system)
+      (inputs (list emacs-s))
+      (home-page "https://codeberg.org/emacs-weirdware/hyperspace")
+      (synopsis "Get there from here")
+      (description
+       "Hyperspace is a way to get nearly anywhere from wherever
+you are, whether that's within Emacs or on the web.  It's somewhere in between
+Quicksilver and keyword URLs, giving you a single, consistent interface to get
+directly where you want to go.  It’s for things that you use often, but not
+often enough to justify a dedicated binding.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-tshell
   ;; XXX: Upstream has no tagged release.  Version is extracted from keyword
   ;; in main file.
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:08 GMT) Full text and rfc822 format available.

Message #56 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 08/14] gnu: Add emacs-exwm-firefox.
Date: Sat, 11 Nov 2023 20:16:12 -0800
* gnu/packages/emacs-xyz.scm (emacs-exwm-firefox): New variable.
---
 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e565dc1d7c..0d0c6cd71a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31375,6 +31375,33 @@ (define-public emacs-exwm-firefox-core
 keypresses mapped in firefox to the action described in the function name.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-exwm-firefox
+  (let ((commit "7390c3bc425894aeda3c12c23f61a234bb71a2d9")
+        (version "0.4")
+        (revision "1"))
+    (package
+      (name "emacs-exwm-firefox")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/exwm-firefox.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0xmgij04h4cbcgqafyyf9qajf0wp6mxpfpwjm6gi1jgisrql882d"))))
+
+      (build-system emacs-build-system)
+      (inputs (list emacs-exwm-firefox-core emacs-s emacs-exwm))
+      (home-page "https://codeberg.org/emacs-weirdware/exwm-firefox")
+      (synopsis "Enhanced support for Firefox under EXWM")
+      (description
+       "This package adds enhanced support for Firefox (and forks
+based on Firefox) under EXWM.  Keybindings intentionally mirror other Emacs
+navigation controls.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-ert-async
   (package
     (name "emacs-ert-async")
-- 
2.41.0





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 04:18:08 GMT) Full text and rfc822 format available.

Message #59 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 14/14] gnu: Add emacs-nssh.
Date: Sat, 11 Nov 2023 20:16:18 -0800
* gnu/packages/emacs-xyz.scm (emacs-nssh): New variable.
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0152f7c432..227c2bc8dc 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36540,6 +36540,30 @@ (define-public emacs-hyperspace
 often enough to justify a dedicated binding.")
       (license (list license:gpl3+)))))
 
+(define-public emacs-nssh
+  (let ((commit "74d43738565749af680e4d1388e0c2f88e93498d")
+        (version "0.9.12")
+        (revision "1"))
+    (package
+      (name "emacs-nssh")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/emacs-weirdware/nssh.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0i2nnrg7xv7b2bbby6idszs9byk2jd83q7vqj6lxgn80w94i56nn"))))
+
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/emacs-weirdware/nssh")
+      (synopsis "New SSH mode")
+      (description "A new SSH mode for Emacs.  It takes some inspiration and
+code from ssh-mode.")
+      (license (list license:gpl3+)))))
+
 (define-public emacs-tshell
   ;; XXX: Upstream has no tagged release.  Version is extracted from keyword
   ;; in main file.
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 07:30:02 GMT) Full text and rfc822 format available.

Message #62 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Ian Eure <ian <at> retrospec.tv>, 67120 <at> debbugs.gnu.org
Cc: Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>,
 Andrew Tropin <andrew <at> trop.in>
Subject: Re: [bug#67120] [PATCH 01/14] gnu: Add emacs-dnt.
Date: Sun, 12 Nov 2023 08:28:51 +0100
Am Samstag, dem 11.11.2023 um 20:16 -0800 schrieb Ian Eure:
> * gnu/packages/emacs-xyz.scm (emacs-dnt): New variable.
> ---
Hi, you've sent this to the wrong bug number.  Please resend the actual
67120 as v2 so we can ignore this blunder :)




Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 17:23:02 GMT) Full text and rfc822 format available.

Message #65 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>,
 Andrew Tropin <andrew <at> trop.in>, 67120 <at> debbugs.gnu.org
Subject: Re: [bug#67120] [PATCH 01/14] gnu: Add emacs-dnt.
Date: Sun, 12 Nov 2023 09:21:48 -0800
Yep, I sure did. :/

Fixed patches incoming.

Liliana Marie Prikler <liliana.prikler <at> gmail.com> writes:

> Am Samstag, dem 11.11.2023 um 20:16 -0800 schrieb Ian Eure:
>> * gnu/packages/emacs-xyz.scm (emacs-dnt): New variable.
>> ---
> Hi, you've sent this to the wrong bug number.  Please resend the 
> actual
> 67120 as v2 so we can ignore this blunder :)
>




Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 17:25:02 GMT) Full text and rfc822 format available.

Message #68 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 1/4] gnu: Add python-mpv-jsonipc.
Date: Sun, 12 Nov 2023 09:23:31 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: I7aa01f25d873faa2a7dd8aa6ea54a1a3ae91006f
---
 gnu/packages/python-xyz.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e521c1580d..6669a6ab73 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -145,6 +145,7 @@
 ;;; Copyright © c4droid <c4droid <at> foxmail.com>
 ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <attila <at> lendvai.name>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24652,6 +24653,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")

base-commit: af6105afc67a15a491a0a4fd18a28c9f801a0b94
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 17:25:02 GMT) Full text and rfc822 format available.

Message #71 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 3/4] gnu: Add python-pystray.
Date: Sun, 12 Nov 2023 09:23:33 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: Ia6ef6388b76db59640914b80ee756d98f5e3e5eb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9beebc5358..8c43be75c3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30439,6 +30439,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray.git")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 17:25:03 GMT) Full text and rfc822 format available.

Message #74 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 2/4] gnu: Add python-jellyfin-apiclient.
Date: Sun, 12 Nov 2023 09:23:32 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: I9c2401a951fe6b980c449f7707c7275b5585ae10
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6669a6ab73..9beebc5358 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24669,6 +24669,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/iwalton3/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 12 Nov 2023 17:25:03 GMT) Full text and rfc822 format available.

Message #77 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 4/4] gnu: Add jellyfin-mpv-shim.
Date: Sun, 12 Nov 2023 09:23:34 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 68581301a2..66468e3dba 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2023 Ott Joon <oj <at> vern.cc>
 ;;; Copyright © 2023 Dominik Delgado Steuter <dds <at> disroot.org>
 ;;; Copyright © 2023 Saku Laesvuori <saku <at> laesvuori.fi>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2406,6 +2407,46 @@ (define-public smplayer
 the last played position, etc.")
     (license license:gpl2+)))
 
+(define-public jellyfin-mpv-shim
+  (let ((desktop-base "jellyfin_mpv_shim/integration/")
+        (package-id "com.github.iwalton3.jellyfin-mpv-shim"))
+  (package
+    (name "python-jellyfin-mpv-shim")
+    (version "2.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-mpv-shim" version))
+       (sha256
+        (base32 "1cy2sfv84k5nw8bqy4aa7v0hdawp7gk5s7wq850xizqk0sz7cipp"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ;Disabled because they seem to boot the UI
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'sanity-check) ;This also seems to boot the UI
+                   (add-after 'install 'install-desktop-file
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let* ((out (assoc-ref outputs "out"))
+                              (apps (string-append out "/share/applications")))
+                         (install-file
+                          (string-append desktop-base package-id ".appdata.xml")
+                          apps)
+                         (install-file
+                          (string-append desktop-base package-id ".desktop")
+                          apps) #t))))))
+    (native-inputs (list xorg-server-for-tests))
+    (propagated-inputs (list `(,python "tk")
+                             python-jellyfin-apiclient
+                             python-mpv
+                             python-mpv-jsonipc
+                             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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+    (license license:gpl2))))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:02 GMT) Full text and rfc822 format available.

Message #80 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 0/4] Add jellyfin-mpv-shim and deps
Date: Wed, 29 Nov 2023 17:54:26 -0800
Changes made:

 - Rebased and addressed conflicts.
 - Fixed a build failure.
 - Renamed from python-jellyfin-mpv-shim to jellyfin-mpv-shim.  I think the python- prefix is only needed for stuff like libraries, an end-uesr application like this shouldn't need the name of the programming language it's written in to be in the package name.

retitle 67120 [PATCH 0/4] Add jellyfin-mpv-shim and deps

Ian Eure (4):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.

 gnu/packages/python-xyz.scm | 61 +++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 41 +++++++++++++++++++++++++
 2 files changed, 102 insertions(+)


base-commit: bdbb9dc27a590b08651d058f06a42caa26e04abb
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:02 GMT) Full text and rfc822 format available.

Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:03 GMT) Full text and rfc822 format available.

Message #86 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 1/4] gnu: Add python-mpv-jsonipc.
Date: Wed, 29 Nov 2023 17:54:28 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: I7aa01f25d873faa2a7dd8aa6ea54a1a3ae91006f
---
 gnu/packages/python-xyz.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 746ecccc5a..e1e27ea76b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -146,6 +146,7 @@
 ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <attila <at> lendvai.name>
 ;;; Copyright © 2023 Troy Figiel <troy <at> troyfigiel.com>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24687,6 +24688,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:03 GMT) Full text and rfc822 format available.

Message #89 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 2/4] gnu: Add python-jellyfin-apiclient.
Date: Wed, 29 Nov 2023 17:54:29 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: I9c2401a951fe6b980c449f7707c7275b5585ae10
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e1e27ea76b..a3fea89e25 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24704,6 +24704,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/iwalton3/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:03 GMT) Full text and rfc822 format available.

Message #92 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 3/4] gnu: Add python-pystray.
Date: Wed, 29 Nov 2023 17:54:30 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: Ia6ef6388b76db59640914b80ee756d98f5e3e5eb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a3fea89e25..a16079c434 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30474,6 +30474,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray.git")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 30 Nov 2023 01:56:04 GMT) Full text and rfc822 format available.

Message #95 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v2 4/4] gnu: Add jellyfin-mpv-shim.
Date: Wed, 29 Nov 2023 17:54:31 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 2822cdf4bf..24a2b52af7 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -67,6 +67,7 @@
 ;;; Copyright © 2023 Dominik Delgado Steuter <dds <at> disroot.org>
 ;;; Copyright © 2023 Saku Laesvuori <saku <at> laesvuori.fi>
 ;;; Copyright © 2023 Jaeme Sifat <jaeme <at> runbox.com>
+;;; Copyright © 2023 Ian Eure <ian <at> retrospec.tv>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2481,6 +2482,46 @@ (define-public smplayer
 the last played position, etc.")
     (license license:gpl2+)))
 
+(define-public jellyfin-mpv-shim
+  (let ((desktop-base "jellyfin_mpv_shim/integration/")
+        (package-id "com.github.iwalton3.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 pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ;Disabled because they seem to boot the UI
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'sanity-check) ;This also seems to boot the UI
+                   (add-after 'install 'install-desktop-file
+                     (lambda* (#:key outputs #:allow-other-keys)
+                       (let* ((out (assoc-ref outputs "out"))
+                              (apps (string-append out "/share/applications")))
+                         (install-file
+                          (string-append #$desktop-base #$package-id ".appdata.xml")
+                          apps)
+                         (install-file
+                          (string-append #$desktop-base #$package-id ".desktop")
+                          apps) #t))))))
+    (native-inputs (list xorg-server-for-tests))
+    (propagated-inputs (list `(,python "tk")
+                             python-jellyfin-apiclient
+                             python-mpv
+                             python-mpv-jsonipc
+                             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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+    (license license:gpl2))))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:22:02 GMT) Full text and rfc822 format available.

Message #98 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v3 0/4] Add jellyfin-mpv-shim and deps
Date: Sat, 17 Feb 2024 09:20:41 -0800
Rebased on current master, since the last patch series no longer applies.

Also, pinging on this; I haven't heard anything since submitting it last November.

Ian Eure (4):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.

 gnu/packages/python-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 40 +++++++++++++++++++++++++
 2 files changed, 100 insertions(+)


base-commit: 3cf199dbcf85a44fa8370e786e568fc3feb7067c
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:22:02 GMT) Full text and rfc822 format available.

Message #101 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v3 1/4] gnu: Add python-mpv-jsonipc.
Date: Sat, 17 Feb 2024 09:20:42 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: Iec7679213d9b9e8e5cbf01a30838e27e71704e54
---
 gnu/packages/python-xyz.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2dd8a12af5..ed80ee1d5e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25808,6 +25808,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:22:03 GMT) Full text and rfc822 format available.

Message #104 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v3 2/4] gnu: Add python-jellyfin-apiclient.
Date: Sat, 17 Feb 2024 09:20:43 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: If84546b14d380a3a10af63d4f41711125298487a
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ed80ee1d5e..ba01a008bf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25824,6 +25824,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/jellyfin/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:22:03 GMT) Full text and rfc822 format available.

Message #107 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v3 3/4] gnu: Add python-pystray.
Date: Sat, 17 Feb 2024 09:20:44 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: If10777c9ec91b549b9937b4825565223786a75cb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ba01a008bf..05c29049b8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31694,6 +31694,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:22:03 GMT) Full text and rfc822 format available.

Message #110 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v3 4/4] gnu: Add jellyfin-mpv-shim.
Date: Sat, 17 Feb 2024 09:20:45 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 894543d3cc..c752198d1e 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2751,6 +2751,46 @@ (define-public smplayer
 the last played position, etc.")
     (license license:gpl2+)))
 
+(define-public jellyfin-mpv-shim
+  (let ((desktop-base "jellyfin_mpv_shim/integration/")
+        (package-id "com.github.iwalton3.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 pyproject-build-system)
+      (arguments
+       (list
+        #:tests? #f ;Disabled because they seem to boot the UI
+        #:phases #~(modify-phases %standard-phases
+                     (delete 'sanity-check) ;This also seems to boot the UI
+                     (add-after 'install 'install-desktop-file
+                       (lambda* (#:key outputs #:allow-other-keys)
+                         (let* ((out (assoc-ref outputs "out"))
+                                (apps (string-append out "/share/applications")))
+                           (install-file (string-append desktop-base
+                                                        package-id
+                                                        ".appdata.xml") apps)
+                           (install-file (string-append desktop-base
+                                                        package-id ".desktop")
+                                         apps) #t))))))
+      (native-inputs (list xorg-server-for-tests))
+      (propagated-inputs (list `(,python "tk")
+                               python-jellyfin-apiclient
+                               python-mpv
+                               python-mpv-jsonipc
+                               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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+      (license license:gpl2))))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:51:01 GMT) Full text and rfc822 format available.

Message #113 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v4 0/4] Add jellyfin-mpv-player and deps
Date: Sat, 17 Feb 2024 09:49:34 -0800
Last patch series was broken, this corrects the build and solves some minor issues.

Ian Eure (4):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.

 gnu/packages/python-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 44 +++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)


base-commit: 3cf199dbcf85a44fa8370e786e568fc3feb7067c
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:51:02 GMT) Full text and rfc822 format available.

Message #116 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v4 1/4] gnu: Add python-mpv-jsonipc.
Date: Sat, 17 Feb 2024 09:49:35 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: Iec7679213d9b9e8e5cbf01a30838e27e71704e54
---
 gnu/packages/python-xyz.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2dd8a12af5..ed80ee1d5e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25808,6 +25808,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:51:02 GMT) Full text and rfc822 format available.

Message #119 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v4 2/4] gnu: Add python-jellyfin-apiclient.
Date: Sat, 17 Feb 2024 09:49:36 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: If84546b14d380a3a10af63d4f41711125298487a
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ed80ee1d5e..ba01a008bf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25824,6 +25824,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/jellyfin/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:51:03 GMT) Full text and rfc822 format available.

Message #122 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v4 3/4] gnu: Add python-pystray.
Date: Sat, 17 Feb 2024 09:49:37 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: If10777c9ec91b549b9937b4825565223786a75cb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ba01a008bf..05c29049b8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31694,6 +31694,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 17:51:03 GMT) Full text and rfc822 format available.

Message #125 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v4 4/4] gnu: Add jellyfin-mpv-shim.
Date: Sat, 17 Feb 2024 09:49:38 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 894543d3cc..442500e24d 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2751,6 +2751,50 @@ (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
+      #:tests? #f ;There are no tests, but this tries to run the GUI.
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'sanity-check) ;This tries to run the GUI.
+                   (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))))))
+    (native-inputs (list xorg-server-for-tests))
+    (propagated-inputs (list `(,python "tk")
+                             python-jellyfin-apiclient
+                             python-mpv
+                             python-mpv-jsonipc
+                             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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+    (license license:gpl2)))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:02 GMT) Full text and rfc822 format available.

Message #128 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 1/5] gnu: Add python-mpv-jsonipc.
Date: Sat, 17 Feb 2024 11:02:36 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: Iec7679213d9b9e8e5cbf01a30838e27e71704e54
---
 gnu/packages/python-xyz.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2dd8a12af5..ed80ee1d5e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25808,6 +25808,22 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to , guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:02 GMT) Full text and rfc822 format available.

Message #131 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 0/5] Add jellyfin-mpv-player and deps
Date: Sat, 17 Feb 2024 11:02:35 -0800
Sorry for the thrashing on this.  Realized I'd written a home service to launch this, but neglected to include that in the patch series.  Added it, and update the docs.

Ian Eure (5):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.
  gnu: Add home-jellyfin-mpv-shim-service-type.

 doc/guix.texi               | 17 +++++++++++
 gnu/home/services/media.scm | 35 ++++++++++++++++++++++
 gnu/packages/python-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 44 +++++++++++++++++++++++++++
 4 files changed, 156 insertions(+)


base-commit: 3cf199dbcf85a44fa8370e786e568fc3feb7067c
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:03 GMT) Full text and rfc822 format available.

Message #134 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 2/5] gnu: Add python-jellyfin-apiclient.
Date: Sat, 17 Feb 2024 11:02:37 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: If84546b14d380a3a10af63d4f41711125298487a
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ed80ee1d5e..ba01a008bf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25824,6 +25824,24 @@ (define-public python-mpv-jsonipc
     (description "Python API to MPV using JSON IPC")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/jellyfin/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:03 GMT) Full text and rfc822 format available.

Message #137 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 3/5] gnu: Add python-pystray.
Date: Sat, 17 Feb 2024 11:02:38 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: If10777c9ec91b549b9937b4825565223786a75cb
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ba01a008bf..05c29049b8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31694,6 +31694,32 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
+    (native-inputs (list python-sphinx xorg-server-for-tests))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:04 GMT) Full text and rfc822 format available.

Message #140 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 4/5] gnu: Add jellyfin-mpv-shim.
Date: Sat, 17 Feb 2024 11:02:39 -0800
* gnu/packages/video.scm (jellyfin-mpv-shim): New variable.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 894543d3cc..442500e24d 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2751,6 +2751,50 @@ (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
+      #:tests? #f ;There are no tests, but this tries to run the GUI.
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'sanity-check) ;This tries to run the GUI.
+                   (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))))))
+    (native-inputs (list xorg-server-for-tests))
+    (propagated-inputs (list `(,python "tk")
+                             python-jellyfin-apiclient
+                             python-mpv
+                             python-mpv-jsonipc
+                             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 "Cast media from Jellyfin Mobile and Web apps to MPV.")
+    (license license:gpl2)))
+
 (define-public gallery-dl
   (package
     (name "gallery-dl")
-- 
2.41.0





Information forwarded to , guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sat, 17 Feb 2024 19:04:04 GMT) Full text and rfc822 format available.

Message #143 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v5 5/5] gnu: Add home-jellyfin-mpv-shim-service-type.
Date: Sat, 17 Feb 2024 11:02:40 -0800
* gnu/home/services/media.scm (home-jellyfin-mpv-shim-service-type): New variable.
* doc/guix.texi (Jellyfin Services): New section.
* doc/guix.texi (Kodi Services): Add subheading.

Change-Id: I037ab0602214fdaa1b032be51ff98ecf6b7ee16c
---
 doc/guix.texi               | 17 +++++++++++++++++
 gnu/home/services/media.scm | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 04119a5955..58981f96d5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -46042,6 +46042,8 @@ Media Home Services
 @subsection Media Home Services
 
 @cindex kodi
+@subsubheading Kodi Services
+
 The @uref{https://kodi.tv, Kodi media center} can be run as a daemon on
 a media server.  With the @code{(gnu home services kodi)} service, you
 can configure Kodi to run upon login.
@@ -46074,6 +46076,21 @@ Media Home Services
 @end table
 @end deftp
 
+@cindex jellyfin
+@subsubheading Jellyfin Services
+
+The @code{home-jellyfin-mpv-shim-service-type} in the @code{(gnu home services media)} module runs a cast client for the @uref{https://jellyfin.org/, Jellyfin} media system.
+
+To enable, add this to your home services:
+
+@lisp
+(service home-jellyfin-mpv-shim-service-type #f)
+@end lisp
+
+@defvar home-jellyfin-mpv-shim-service-type
+The type of the Jellyfin MPV Shim service.
+@end defvar
+
 @node Networking Home Services
 @subsection Networking Home Services
 
diff --git a/gnu/home/services/media.scm b/gnu/home/services/media.scm
index c6454dfe15..219bb97487 100644
--- a/gnu/home/services/media.scm
+++ b/gnu/home/services/media.scm
@@ -19,8 +19,10 @@
 (define-module (gnu home services media)
   #:use-module (srfi srfi-26)
   #:use-module (gnu home services)
+  #:use-module (gnu home services desktop)
   #:use-module (gnu home services shepherd)
   #:use-module (gnu packages kodi)
+  #:use-module (gnu packages video)
   #:use-module (gnu services configuration)
   #:use-module (gnu services shepherd)
   #:use-module (guix records)
@@ -66,3 +68,36 @@ (define home-kodi-service-type
    (description
     "Install and configure the Kodi media center so that it runs as a Shepherd
 service.")))
+
+(define (jellyfin-mpv-shim-shepherd-service _ignore)
+  (list (shepherd-service
+         (documentation "Jellyfin MPV Shim.")
+         (provision '(jellyfin-mpv-shim jellyfin-client))
+
+         ;; Depend on 'x11-display', which sets 'DISPLAY' if an X11 server is
+         ;; available, and fails to start otherwise.
+         (requirement '(x11-display))
+
+         (modules '((srfi srfi-1)
+                    (srfi srfi-26)))
+         (start #~(lambda _
+                    (fork+exec-command
+                     (list #$(file-append jellyfin-mpv-shim "/bin/jellyfin-mpv-shim"))
+
+                     ;; Inherit the 'DISPLAY' variable set by 'x11-display'.
+                     #:environment-variables
+                     (cons (string-append "DISPLAY=" (getenv "DISPLAY"))
+                           (remove (cut string-prefix? "DISPLAY=" <>)
+                                   (default-environment-variables))))))
+         (stop #~(make-kill-destructor)))))
+
+(define-public home-jellyfin-mpv-shim-service-type
+  (service-type
+   (name 'home-jellyfin-mpv-shim)
+   (extensions (list (service-extension home-shepherd-service-type
+                                        jellyfin-mpv-shim-shepherd-service)
+                     ;; Ensure 'home-x11-service-type' is instantiated so we
+                     ;; can depend on the Shepherd 'x11-display' service.
+                     (service-extension home-x11-service-type
+                                        (const #t))))
+   (description "Run Jellyfin MPV Shim.")))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Wed, 21 Feb 2024 20:44:02 GMT) Full text and rfc822 format available.

Message #146 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH 0/4] Add jellyfin-mpv-player and deps
Date: Wed, 21 Feb 2024 20:42:25 +0000
[Message part 1 (text/plain, inline)]
Hi Ian,

QA looks green ^.-

I've noticed some minor picks in v5 you sent.

--8<---------------cut here---------------start------------->8---
+(define-public jellyfin-mpv-shim
...
+    (license license:gpl2)))
--8<---------------cut here---------------end--------------->8---
Nix listes 5 licenses in the package
<https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/applications/video/jellyfin-mpv-shim/default.nix#L109>
may you double check if it's still valid.

--8<---------------cut here---------------start------------->8---
+(define-public python-mpv-jsonipc
...
+    (synopsis "Python API to MPV using JSON IPC")
+    (description "Python API to MPV using JSON IPC")
--8<---------------cut here---------------end--------------->8---
The description of the package needs to be longer than synopsis and
needs to include more info. No full stop after end of the sentence.

--8<---------------cut here---------------start------------->8---
+(define-public python-jellyfin-apiclient
...
+    (synopsis "Python API client for Jellyfin")
+    (description "Python API client for Jellyfin")
--8<---------------cut here---------------end--------------->8---
Same here.

--8<---------------cut here---------------start------------->8---
+(define-public python-pystray
...
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'check)
+                   (delete 'sanity-check))))
--8<---------------cut here---------------end--------------->8---
Please use #:tests? flag and place some comments why it's disabled (no
tests, require network, all broken etc.). Does Sanity check fail due to
incompatible versions, if so consider add relax-requirement phase (see
code examples in python-xyz).

Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:01 GMT) Full text and rfc822 format available.

Message #149 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 1/5] gnu: Add python-mpv-jsonipc.
Date: Sun, 25 Feb 2024 14:20:30 -0800
* gnu/packages/python-xyz.scm (python-mpv-jsonipc): New variable.

Change-Id: Iec7679213d9b9e8e5cbf01a30838e27e71704e54
---
 gnu/packages/python-xyz.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a051f5a8db..b6001416a6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25808,6 +25808,23 @@ (define-public online-judge-tools
 submitting it.")
     (license license:expat)))
 
+(define-public python-mpv-jsonipc
+  (package
+    (name "python-mpv-jsonipc")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-mpv-jsonipc" version))
+       (sha256
+        (base32 "0ymdwrx544a6gn6wm9dixpgzbfrbpxvcj5ys7m41cgb4lvpvx691"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/iwalton3/python-mpv-jsonipc")
+    (synopsis "Python API to control MPV using JSON IPC")
+    (description "python-mpv-jsonipc implements an interface similar to
+python-mpv, but it uses the JSON IPC protocol instead of the C API.")
+    (license license:asl2.0)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to , guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:01 GMT) Full text and rfc822 format available.

Message #152 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 0/5] Add jellyfin-mpv-player and deps
Date: Sun, 25 Feb 2024 14:20:29 -0800
- Corrects package description/synopsis issues.
- Explain why tests are disabled.
- Add comment explaining why sanity-check phase of jellyfin-mpv-shim is disabled.
- Fix sanity-check phase of python-pystray.
- Change jellyfin-mpv-shim propagated-inputs to inputs.
- Correct jellyfin-mpv-shim inputs.
- Only start the service if the shim is configured.  Document this.

Ian Eure (5):
  gnu: Add python-mpv-jsonipc.
  gnu: Add python-jellyfin-apiclient.
  gnu: Add python-pystray.
  gnu: Add jellyfin-mpv-shim.
  gnu: Add home-jellyfin-mpv-shim-service-type.

 doc/guix.texi               | 19 ++++++++++
 gnu/home/services/media.scm | 42 +++++++++++++++++++++
 gnu/packages/python-xyz.scm | 73 ++++++++++++++++++++++++++++++++++++
 gnu/packages/video.scm      | 75 +++++++++++++++++++++++++++++++++++++
 4 files changed, 209 insertions(+)


base-commit: b25b94335a3ee8d68d2145da8e5ea0325ecea451
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:02 GMT) Full text and rfc822 format available.

Message #155 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 2/5] gnu: Add python-jellyfin-apiclient.
Date: Sun, 25 Feb 2024 14:20:31 -0800
* gnu/packages/python-xyz.scm (python-jellyfin-apiclient): New variable.

Change-Id: If84546b14d380a3a10af63d4f41711125298487a
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b6001416a6..1ed1f0e135 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25825,6 +25825,26 @@ (define-public python-mpv-jsonipc
 python-mpv, but it uses the JSON IPC protocol instead of the C API.")
     (license license:asl2.0)))
 
+(define-public python-jellyfin-apiclient
+  (package
+    (name "python-jellyfin-apiclient")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jellyfin-apiclient-python" version))
+       (sha256
+        (base32 "0r67cp9nizvn3cbslgi30zpd3mw4a6zal0ygik3jv5lni1xdkk5w"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-certifi python-requests python-urllib3
+                             python-websocket-client))
+    (home-page "https://github.com/jellyfin/jellyfin-apiclient-python")
+    (synopsis "Python API client for Jellyfin")
+    (description "python-jellyfin-apiclient allows use of the Jellyfin API
+from Python.  It was extracted from the Jellyfin Kodi plugin so other users
+may use the Jellyfin API more easily.")
+    (license license:gpl3)))
+
 (define-public python-parso
   (package
     (name "python-parso")
-- 
2.41.0





Information forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:02 GMT) Full text and rfc822 format available.

Message #158 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 3/5] gnu: Add python-pystray.
Date: Sun, 25 Feb 2024 14:20:32 -0800
* gnu/packages/python-xyz.scm (python-pystray): New variable.

Change-Id: If10777c9ec91b549b9937b4825565223786a75cb
---
 gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1ed1f0e135..36442f0870 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31728,6 +31728,42 @@ (define-public python-qdarkstyle
 Qt applications.")
     (license license:expat)))
 
+(define-public python-pystray
+  (package
+    (name "python-pystray")
+    (version "0.19.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moses-palmer/pystray")
+             (commit "1907f8681d6d421517c63d94f425f9cdd74d0034")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      ;; The test suite requires user interaction, there are no automated
+      ;; tests.
+      #:tests? #false
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'sanity-check 'use-dummy-backend
+                     (lambda _
+                       ;; Without setting this, pystray tries to connect to
+                       ;; X11 on import.
+                       (setenv "PYSTRAY_BACKEND" "dummy"))))))
+    (native-inputs (list python-sphinx))
+    (propagated-inputs (list python-pillow python-six python-xlib))
+    (home-page "https://github.com/moses-palmer/pystray")
+    (synopsis "Create a system tray icon")
+    (description "This library allows you to create a system tray icon.
+
+It allows specifying an icon, a title and a callback for when the icon is
+activated. The icon and title can be changed after the icon has been created,
+and the visibility of the icon can be toggled.")
+    (license license:lgpl3)))
+
 (define-public python-bitstring
   (package
     (name "python-bitstring")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:03 GMT) Full text and rfc822 format available.

Message #161 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 4/5] gnu: Add jellyfin-mpv-shim.
Date: Sun, 25 Feb 2024 14:20:33 -0800
* 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





Information forwarded to , guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:22:03 GMT) Full text and rfc822 format available.

Message #164 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH v6 5/5] gnu: Add home-jellyfin-mpv-shim-service-type.
Date: Sun, 25 Feb 2024 14:20:34 -0800
* gnu/home/services/media.scm (home-jellyfin-mpv-shim-service-type): New variable.
* doc/guix.texi (Jellyfin Services): New section.
* doc/guix.texi (Kodi Services): Add subheading.

Change-Id: I037ab0602214fdaa1b032be51ff98ecf6b7ee16c
---
 doc/guix.texi               | 19 +++++++++++++++++
 gnu/home/services/media.scm | 42 +++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 671cdab6f8..f4d64f9df7 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -46103,6 +46103,8 @@ Media Home Services
 @subsection Media Home Services
 
 @cindex kodi
+@subsubheading Kodi Services
+
 The @uref{https://kodi.tv, Kodi media center} can be run as a daemon on
 a media server.  With the @code{(gnu home services kodi)} service, you
 can configure Kodi to run upon login.
@@ -46135,6 +46137,23 @@ Media Home Services
 @end table
 @end deftp
 
+@cindex jellyfin
+@subsubheading Jellyfin Services
+
+The @code{home-jellyfin-mpv-shim-service-type} in the @code{(gnu home services media)} module runs a cast client for the @uref{https://jellyfin.org/, Jellyfin} media system.
+
+To enable, add this to your home services:
+
+@lisp
+(service home-jellyfin-mpv-shim-service-type #f)
+@end lisp
+
+The service only starts if @code{jellyfin-mpv-shim} has been configured with a remote server and credentials.  This must be done manually, by launching @code{jellyfin-mpv-shim}.  After configuring the server, the service will start automatically when you log in.
+
+@defvar home-jellyfin-mpv-shim-service-type
+The type of the Jellyfin MPV Shim service.
+@end defvar
+
 @node Networking Home Services
 @subsection Networking Home Services
 
diff --git a/gnu/home/services/media.scm b/gnu/home/services/media.scm
index c6454dfe15..a7fcf75b06 100644
--- a/gnu/home/services/media.scm
+++ b/gnu/home/services/media.scm
@@ -19,8 +19,10 @@
 (define-module (gnu home services media)
   #:use-module (srfi srfi-26)
   #:use-module (gnu home services)
+  #:use-module (gnu home services desktop)
   #:use-module (gnu home services shepherd)
   #:use-module (gnu packages kodi)
+  #:use-module (gnu packages video)
   #:use-module (gnu services configuration)
   #:use-module (gnu services shepherd)
   #:use-module (guix records)
@@ -66,3 +68,43 @@ (define home-kodi-service-type
    (description
     "Install and configure the Kodi media center so that it runs as a Shepherd
 service.")))
+
+(define (jellyfin-mpv-shim-shepherd-service _ignore)
+  (list (shepherd-service
+         (documentation "Jellyfin MPV Shim.")
+         (provision '(jellyfin-mpv-shim jellyfin-client))
+
+         ;; Depend on 'x11-display', which sets 'DISPLAY' if an X11 server is
+         ;; available, and fails to start otherwise.
+         (requirement '(x11-display))
+
+         (modules '((srfi srfi-1)
+                    (srfi srfi-26)
+                    (srfi srfi-98)))
+         (start #~(lambda _
+                    ;; Only start if a server has been configured.
+                    (if (file-exists?
+                         (string-append
+                          (get-environment-variable "XDG_CONFIG_HOME")
+                          "/jellyfin-mpv-shim/cred.json"))
+                        (fork+exec-command
+                         (list #$(file-append jellyfin-mpv-shim "/bin/jellyfin-mpv-shim"))
+
+                         ;; Inherit the 'DISPLAY' variable set by 'x11-display'.
+                         #:environment-variables
+                         (cons (string-append "DISPLAY=" (getenv "DISPLAY"))
+                               (remove (cut string-prefix? "DISPLAY=" <>)
+                                       (default-environment-variables))))
+                        #f)))
+         (stop #~(make-kill-destructor)))))
+
+(define-public home-jellyfin-mpv-shim-service-type
+  (service-type
+   (name 'home-jellyfin-mpv-shim)
+   (extensions (list (service-extension home-shepherd-service-type
+                                        jellyfin-mpv-shim-shepherd-service)
+                     ;; Ensure 'home-x11-service-type' is instantiated so we
+                     ;; can depend on the Shepherd 'x11-display' service.
+                     (service-extension home-x11-service-type
+                                        (const #t))))
+   (description "Run Jellyfin MPV Shim.")))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 25 Feb 2024 22:33:02 GMT) Full text and rfc822 format available.

Message #167 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 67120 <at> debbugs.gnu.org
Subject: Re: [PATCH 0/4] Add jellyfin-mpv-player and deps
Date: Sun, 25 Feb 2024 14:03:24 -0800
Hi Sharlatan,

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> [[PGP Signed Part:Undecided]]
>
> Hi Ian,
>
> QA looks green ^.-
>
> I've noticed some minor picks in v5 you sent.
>

Thank you for the feedback, I sent an updated patch series.

I had to keep the sanity-check phase of jellyfin-mpv-shim removed, 
because the program is ill-behaved and tries to do stuff at module 
import time, which breaks the build.

Thanks,

 — Ian




Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Thu, 07 Mar 2024 19:34:01 GMT) Full text and rfc822 format available.

Message #170 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 67120 <at> debbugs.gnu.org
Subject: Progress
Date: Thu, 7 Mar 2024 20:32:27 +0100
Hello,

during the online patch hacking session I just had time to apply the first
two patches. I have added a copyright line for you. And I changed the
license of the second one to gpl3+; unless specified otherwise, gpl always
carries forward.

Thanks!

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Fri, 08 Mar 2024 12:00:01 GMT) Full text and rfc822 format available.

Message #173 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 67120 <at> debbugs.gnu.org
Subject: Progress
Date: Fri, 8 Mar 2024 12:57:48 +0100
3/5 pushed, after modifying the license to lgpl3+, see here:
   https://github.com/moses-palmer/pystray/blob/master/lib/pystray/__init__.py

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Fri, 08 Mar 2024 12:12:01 GMT) Full text and rfc822 format available.

Message #176 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 67120 <at> debbugs.gnu.org
Subject: Done
Date: Fri, 8 Mar 2024 13:10:36 +0100
Hello,

I also pushed 4/5, after removing a trailing #t in a phase and some
reformatting to make the lines shorter. Thanks for the detailed license
list!

I am not familiar enough with services to have a look at the last patch,
and will leave this to someone else. Since this issue has become quite
long with its 6 versions of patches, you may wish to close this bug and
then resubmit only the service part separately to make it look less
overwhelming for the service person.

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#67120; Package guix-patches. (Sun, 10 Mar 2024 05:20:02 GMT) Full text and rfc822 format available.

Message #179 received at 67120 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: 67120 <at> debbugs.gnu.org, Andreas Enge <andreas <at> enge.fr>,
 control <at> debbugs.gnu.org
Subject: Re: [PATCH 0/4] Add jellyfin-mpv-player and deps
Date: Sat, 09 Mar 2024 21:15:59 -0800
close 67120
thanks

Hi Andreas,

Thank you for the review and commits!  Looks like I missed your 
messages because I’m not subscribed to bug-guix and didn’t get 
cc’d.  I like your advice, I’ll get a new bug opened.

Ian Eure <ian <at> retrospec.tv> writes:

> Hi Sharlatan,
>
> Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:
>
>> [[PGP Signed Part:Undecided]]
>>
>> Hi Ian,
>>
>> QA looks green ^.-
>>
>> I've noticed some minor picks in v5 you sent.
>>
>
> Thank you for the feedback, I sent an updated patch series.
>
> I had to keep the sanity-check phase of jellyfin-mpv-shim 
> removed,
> because the program is ill-behaved and tries to do stuff at 
> module
> import time, which breaks the build.
>
> Thanks,
>
>  — Ian
>




bug closed, send any further explanations to 67120 <at> debbugs.gnu.org and Ian Eure <ian <at> retrospec.tv> Request was from Ian Eure <ian <at> retrospec.tv> to control <at> debbugs.gnu.org. (Sun, 10 Mar 2024 05:20:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 07 Apr 2024 11:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.