From patchwork Sat Feb 17 19:02:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 60465 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 3314727BBEE; Sat, 17 Feb 2024 19:04:13 +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 DA7DF27BBEA for ; Sat, 17 Feb 2024 19:04:06 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbPyX-0002vs-NM; Sat, 17 Feb 2024 14:03:49 -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 1rbPyS-0002tH-PE for guix-patches@gnu.org; Sat, 17 Feb 2024 14:03: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 1rbPyS-0000iR-HE for guix-patches@gnu.org; Sat, 17 Feb 2024 14:03:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbPym-0000Y8-Ca for guix-patches@gnu.org; Sat, 17 Feb 2024 14:04:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH v5 4/5] 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 19:04:04 +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.17081966022025 (code B ref 67120); Sat, 17 Feb 2024 19:04:04 +0000 Received: (at 67120) by debbugs.gnu.org; 17 Feb 2024 19:03:22 +0000 Received: from localhost ([127.0.0.1]:33890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbPy5-0000WV-QB for submit@debbugs.gnu.org; Sat, 17 Feb 2024 14:03:22 -0500 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:56209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbPy0-0000VS-JM for 67120@debbugs.gnu.org; Sat, 17 Feb 2024 14:03:17 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 6C24613800C2; Sat, 17 Feb 2024 14:02:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 17 Feb 2024 14:02:51 -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=1708196571; x= 1708282971; bh=nI70V9HVFhUmBiWaZsd/Ag6Q19WhG7GI9pW2qJm5l70=; b=B XGtceVnJD0Ei04Rf0Qero142phSpmQIDem4ihlwPyeyJz61lrfARvR/bAARJOs35 9PneqFTerYU8aBxrEMzlNFSRV7YU0QX1NGpKKUu17TXoIdc2yJpqvVavq5x+sjZs QQJukkohf0BBTpHcr0f4ZJ8Kdl790+X2jo7+9S1lh6K/8F/XRu4kfciStL5jjlh8 X80HiAuyZ3EEWfAz3NBFduiAJM9yl+Y6UPb7pVMrH6cJdS4dFJRiN7mxlh20M+0Q zEnowNWjVAiQQr5FHi5jR+yUn22GoQKjf9LUnqlYNxFvIUV7igaPlNJwtlVqDEV2 3i51hpX3NtALPxVlgjsSA== 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=1708196571; x= 1708282971; bh=nI70V9HVFhUmBiWaZsd/Ag6Q19WhG7GI9pW2qJm5l70=; b=e JeiHH1zTRKHLQnbI6i2wcG0Mqf7HYU3S6CpRC3FAGaXejQo3spW+djXLJtos8Tog Z78OUUp1VHGw13usgw7OAZOEAVZb8Y763cJZ9dads11oykDm4r0jXKa67pW/Mho4 cW+jj0Og8IU5QHzaGjv6TFYkM/jKsfXiaY6bkwxCAvrpTsAD2NyueJIMQoUX4ehq eIxesPDKslJXoPreK54IdSq8x/yh1i98fMIA0hoK6bYlR3SZBJ8Jh0LpbRg//iwb 8Id9UhhT9doTnWIKlMkUWFhlRfBmKr1GTGmjd7p2rFtqI8egR+/1/zXIiZr/dxtg UdYLmCZwT8KhAS58k9N0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggdduvddtucetufdoteggodetrfdotf 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 14:02:50 -0500 (EST) From: Ian Eure Date: Sat, 17 Feb 2024 11:02:39 -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")