From patchwork Sun Nov 12 17:23:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 56384 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 867CF27BBE2; Sun, 12 Nov 2023 17:24:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B2C9227BBE9 for ; Sun, 12 Nov 2023 17:24:29 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2EC9-0000ET-FJ; Sun, 12 Nov 2023 12:24:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2EC6-0000E0-U9 for guix-patches@gnu.org; Sun, 12 Nov 2023 12:24:22 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2EC6-0000zk-MT for guix-patches@gnu.org; Sun, 12 Nov 2023 12:24:22 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2ECl-00040n-M4 for guix-patches@gnu.org; Sun, 12 Nov 2023 12:25:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH v2 4/4] gnu: Add jellyfin-mpv-shim. Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Nov 2023 17:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67120@debbugs.gnu.org Cc: Ian Eure Received: via spool by 67120-submit@debbugs.gnu.org id=B67120.169980988415369 (code B ref 67120); Sun, 12 Nov 2023 17:25:03 +0000 Received: (at 67120) by debbugs.gnu.org; 12 Nov 2023 17:24:44 +0000 Received: from localhost ([127.0.0.1]:56917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2ECR-0003zj-N0 for submit@debbugs.gnu.org; Sun, 12 Nov 2023 12:24:44 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2ECN-0003yz-FX for 67120@debbugs.gnu.org; Sun, 12 Nov 2023 12:24:40 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4AF9C5C0379; Sun, 12 Nov 2023 12:23:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 12 Nov 2023 12:23:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1699809833; x=1699896233; bh=lpC2WYjE52cimsd1JaK9uchr2qsgKW2LR7i ccLKlFQk=; b=yeGgbo+XpXbBA0sez2xbnuY2YWW4z6cbwAQ93Kg66MRU7mocdtE jLuDjnxu4/WSqLlOuhh1ZaWWNeVKNAXz7DUWGC/i3IyX5oOsVCmiHdzp0wJY6Bs7 YBekVhXw85vmb8L9RdJ3uLWnBuECq5xPq+qLAKUYKQQz54ZL7mJu5cScWqEeVbHE tgrVUg80lHFDUCI6JO4gF+UO/czaDsM4C8d/9nPBau58daeXrBDFsoaWNfAh8YEx S6QAX0KgF15qt/gPJ0DV35Euj2ZinJbChsvlCJv0IdDHib7v4g86/ypM3zBIsNNC rWwOSCeoTBOTS48yWEPyc+GOoqrJSpbiuQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699809833; x=1699896233; bh=lpC2WYjE52cimsd1JaK9uchr2qsgKW2LR7i ccLKlFQk=; b=CXBNl3HkoYgSKJRaZ9I1MoPAfDiV3zUF1LGpAOjlwfAsVXaKKGw 2xNHfnMDqh4rD2ekVFgRYURSGkE2JhnFiNaJ75IziO8uxOR2AqsDKoRsM7Hh5J4j ouDjCxkLEkihEHbUvxfSI5A8xrvFsfeFLJbuoMjymyxJdYonH8MkoVQGmOcEVjW3 mLniK1NaIKBO9GV2WRYL4ZddGYQTlPotTnXh9dYKlucrxL+tioWLlkPjQ33T2+D4 PUwGD1uXD3xD/AbOTv1QqPSWvyMaIQHgoQOC43vNHb0MCtHX0CqcYASJudli6haB Ri4bKWDm8VbsqKl/cihNEWVfM+iK0Pku2kQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvkedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdeimdenucfjughrpefhvf evufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepkfgrnhcugfhurhgvuceo ihgrnhesrhgvthhrohhsphgvtgdrthhvqeenucggtffrrghtthgvrhhnpeejvdffffehve elvddtffelkefhgffhjeelhfeigfejkeelvefggfevtedtteevueenucffohhmrghinhep ghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrthhv X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 12 Nov 2023 12:23:52 -0500 (EST) From: Ian Eure Date: Sun, 12 Nov 2023 09:23:34 -0800 Message-ID: <0fde32714a9364466cf2ea7bfeee7dec6257bc48.1699809635.git.ian@retrospec.tv> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2023 Dominik Delgado Steuter ;;; Copyright © 2023 Saku Laesvuori +;;; Copyright © 2023 Ian Eure ;;; ;;; 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")