From patchwork Sun Feb 25 22:20:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 61127 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 60EB327BBEA; Sun, 25 Feb 2024 22:22:25 +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=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 5363427BBE2 for ; Sun, 25 Feb 2024 22:22:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reMsQ-0001Af-91; Sun, 25 Feb 2024 17:21:42 -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 1reMsM-00018s-Mp for guix-patches@gnu.org; Sun, 25 Feb 2024 17:21:38 -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 1reMsM-0006hn-F5 for guix-patches@gnu.org; Sun, 25 Feb 2024 17:21:38 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reMsl-0006ke-Bv for guix-patches@gnu.org; Sun, 25 Feb 2024 17:22:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH v6 4/5] gnu: Add jellyfin-mpv-shim. Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 22:22: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.170889968625803 (code B ref 67120); Sun, 25 Feb 2024 22:22:03 +0000 Received: (at 67120) by debbugs.gnu.org; 25 Feb 2024 22:21:26 +0000 Received: from localhost ([127.0.0.1]:54867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMsA-0006i0-20 for submit@debbugs.gnu.org; Sun, 25 Feb 2024 17:21:26 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:54093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMs4-0006gc-I7 for 67120@debbugs.gnu.org; Sun, 25 Feb 2024 17:21:21 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id CF9673200A20; Sun, 25 Feb 2024 17:20:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 25 Feb 2024 17:20: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=1708899649; x= 1708986049; bh=xgkmLKpgn7/k0ahWc0o5IB60L21ipg3m7GXMeGrY4xw=; b=f g7e3paBJqnzAs5T1Rjz2C66Y/h9/NJSeXsUBM1xNouFsruWKdqm8baJbQOeU4hjF ATVOfc9VReY8kCWBLVj/tsjG7Fv3RzVLpPS/7dL+qugLtJDCxvz+8ofkEFRgWEpM G6lh4yqriREcPwyCy+ZdPbDmHIUNwu0VmL8Zx4sCdTkiMKbTROcn4ccpDryd2gSg Aw462SwSD7Wqegm2bnwDokMNdeitNJBgSNSPq0ygovYIeQEK27dhcge/q43j1gjr Wy1WZNL7XSb1yEGAq3LvAGrzJhyQaStTlutvpEx2Us/VqfizJKU/14kRJ+09Z5LH cKVnkGbw+HeAFEpvirVjg== 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=1708899649; x= 1708986049; bh=xgkmLKpgn7/k0ahWc0o5IB60L21ipg3m7GXMeGrY4xw=; b=q /ZZZp3vg0lus83T21zlK7PS8vt/2rObj4OFhfpxZBe0VB7VvGoEYC2dsW+isD41n T17JqkxfAt8rFcCHKOH4WFqAMtbDGqonsfcqW/HK0zTL48G1ghq4ia/zYSd/hwhQ FbiQSDLGHJ5gAv/I3+X23aS+e+66gQuPeUwhHX40k3oxG3jhPuywuRhA96VMVxBK xUE6kyEm9uDvoVW4u1nN98p84pCQwNdddZeC04JDIiqtaBm4oW3nvJHEu9RocbDb 7/vTO7Ghwr1/ZLcpdpnBrbxUVmcDKPa3dVt31Cmh7KQrM/qgxROlKnuMLnwEmv7C KzgLS0WdL886uLFA7DbfQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedtgdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehrvghtrhhoshhpvggt rdhtvheqnecuggftrfgrthhtvghrnhepvdeugeduveefgeehvddthefgjeevvddvtefghe egtdfgueeitdehgfduffevjeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehirghnsehrvg htrhhoshhpvggtrdhtvh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Feb 2024 17:20:48 -0500 (EST) From: Ian Eure Date: Sun, 25 Feb 2024 14:20:33 -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 | 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")