From patchwork Sat Feb 17 17:49:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 60461 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 ECD5C27BBE2; Sat, 17 Feb 2024 17:51:20 +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,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 45DE027BBEA for ; Sat, 17 Feb 2024 17:51:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbOpw-000809-KQ; Sat, 17 Feb 2024 12:50:52 -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 1rbOpp-0007xI-8m for guix-patches@gnu.org; Sat, 17 Feb 2024 12:50:45 -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 1rbOpp-0005A3-0p for guix-patches@gnu.org; Sat, 17 Feb 2024 12:50:45 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbOq7-00077S-TL for guix-patches@gnu.org; Sat, 17 Feb 2024 12:51:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH v4 4/4] gnu: Add jellyfin-mpv-shim. Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Feb 2024 17:51: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.170819222427292 (code B ref 67120); Sat, 17 Feb 2024 17:51:03 +0000 Received: (at 67120) by debbugs.gnu.org; 17 Feb 2024 17:50:24 +0000 Received: from localhost ([127.0.0.1]:33790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbOpT-000767-Bw for submit@debbugs.gnu.org; Sat, 17 Feb 2024 12:50:23 -0500 Received: from wfout6-smtp.messagingengine.com ([64.147.123.149]:48963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbOpM-000752-GH for 67120@debbugs.gnu.org; Sat, 17 Feb 2024 12:50:17 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 5907E1C00073; Sat, 17 Feb 2024 12:49:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 17 Feb 2024 12:49:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1708192189; x= 1708278589; bh=nI70V9HVFhUmBiWaZsd/Ag6Q19WhG7GI9pW2qJm5l70=; b=L xnv2FDpeY2R+8LAlDxIppMP4eNUbaK1z3sFUaE1j8BNWZhEUG5wY/NY18pR1GJog 1pAkbpCqFcXbvSwfl1UnRzgQWg73PNuj1cI8117Y77tvnytGrc2ojv6aUcsoke/o wghrfHA8oG7pw/COtYBL41CtjqCvCE63O+F2942hInZswcpC9CtqANHdM2uTPGiq 8G56AumpU2VifW9jaXcsFoUqB/Sgn0/P2lkpqCONjJYaUgT+LUI5MME+j2GNeX9Z yhRgHN1s2sAHS4YUSYRI7muHW5TthefegM9BOZQ9fz333OJuAk8u+IuDzdHAf+I5 pPDuAm/y/0xOMka9sDXfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708192189; x= 1708278589; bh=nI70V9HVFhUmBiWaZsd/Ag6Q19WhG7GI9pW2qJm5l70=; b=R aqfW2fYos032rpJn5dJAXNqTpg9Rafu406enUtA/g5pgq1ref2G23WMp+HQ59tXx bZ0AL5NCVB3wRRBClZ18O+okCVeZwK2OQ13HJFluutLTIMS0QSk/xLuYhq34kQ6V tLIb5+5R52wTZxjauwSTkxWIEQkh1BnmXs6v/rPfudb1FtLHjzaHvu/7TsTbIY0X 5AI2/kSlHIYj5z/+xXagrXZNzdfYSf7TLXvNS/PHF0uR3tG4uaBpm9dFBzNpophw BBN94CAJhwFHxsA9FcjaKb5GccWBgGHWV0ydHJZh/U8qYx0dVDa773qEL2lAHCyX 3mO7QLJPYqAacBqSSPr1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehrvghtrhhoshhpvggt rdhtvheqnecuggftrfgrthhtvghrnhepvdeugeduveefgeehvddthefgjeevvddvtefghe egtdfgueeitdehgfduffevjeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehirghnsehrvg htrhhoshhpvggtrdhtvh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Feb 2024 12:49:49 -0500 (EST) From: Ian Eure Date: Sat, 17 Feb 2024 09:49:38 -0800 Message-ID: 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: 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")