From patchwork Sun Nov 12 04:16:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 56364 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 D0E6327BBE2; Sun, 12 Nov 2023 04:18:04 +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 1275627BBEA for ; Sun, 12 Nov 2023 04:18:03 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r21uc-0002TH-Gk; Sat, 11 Nov 2023 23:17:30 -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 1r21uY-0002PH-5u for guix-patches@gnu.org; Sat, 11 Nov 2023 23:17:26 -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 1r21uX-0006Ns-Tt for guix-patches@gnu.org; Sat, 11 Nov 2023 23:17:25 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r21vC-00027m-JT for guix-patches@gnu.org; Sat, 11 Nov 2023 23:18:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH 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 04:18:06 +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.16997626567972 (code B ref 67120); Sun, 12 Nov 2023 04:18:06 +0000 Received: (at 67120) by debbugs.gnu.org; 12 Nov 2023 04:17:36 +0000 Received: from localhost ([127.0.0.1]:54820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r21uh-00024O-Ik for submit@debbugs.gnu.org; Sat, 11 Nov 2023 23:17:36 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r21uY-00021S-AL for 67120@debbugs.gnu.org; Sat, 11 Nov 2023 23:17:28 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7286D5C00C6; Sat, 11 Nov 2023 23:16:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 11 Nov 2023 23:16:40 -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= 1699762600; x=1699849000; bh=lpC2WYjE52cimsd1JaK9uchr2qsgKW2LR7i ccLKlFQk=; b=0jqs/jSA5gHmv1BlLtYZfSoDiZtQKN1d66g50HIQZBexxzNECCN cIUvMmNnM/eIxQ5s+WDjIVLJB2r3l3z3OYF1M57ST4Cs+4MCoG6fTVJiKWe3MQKZ oHL1MAaUDDezWfYARLWlY/YGVqC7d5Zaq9x9z6U/ksmPoxbn7ZPVIBTj4r2oOsvP w2URt7RPBfmUOphuIEmStHuqEZXdn568G8aq1/4W0JLrgfMTzVkes2IEfux4OYCL EUT3VTQI0HSxapurbyKS6OP5j7zPuz13GzZvgweblrXjfoZc0MPnpHcIjA+hO8f+ 4pNr+0mTDpWAd2oEhX+6+ruYJ6hg23GEKUw== 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= 1699762600; x=1699849000; bh=lpC2WYjE52cimsd1JaK9uchr2qsgKW2LR7i ccLKlFQk=; b=uC1AYWJG1b0wr0+CR8d/Vrp/SnJNubXDpJx1tl6MCqEwi/S9A+h rt7j0MQYD1BIdHE3Ys3ow/yuPZEwSTct2N3di33UxlYyluuT6eyCJNlEUF954AVP SbsgwOPdnJ21jTCvB9F3/WErYxmcxc08OF8vUc9CQg+j5f7eIzjZOK4R2KGi6WjT QM7ttqT8gacQyZJkrnaVCVtNjqs/oeLGZzZWG4IjAwR+pSz1Y9Bs+4oO05rd3Yai UL3n3tmJP36ILfIzmvihhuyM81TtoohOwpr5uoi/eKF1KqCEXV/OFf9Qs0DhHumE KrhoPTDPYU48dNjK7bq1MJqtVH0/AlUTBTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdliedmnecujfgurhephffvve fufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefkrghnucfguhhrvgcuoehi rghnsehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepjedvffffheevle dvtdffleekhffghfejlefhiefgjeekleevgffgveettdetveeunecuffhomhgrihhnpehg ihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehirghnsehrvghtrhhoshhpvggtrdhtvh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Nov 2023 23:16:39 -0500 (EST) From: Ian Eure Date: Sat, 11 Nov 2023 20:16:08 -0800 Message-ID: <0fde32714a9364466cf2ea7bfeee7dec6257bc48.1699762188.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")