From patchwork Sat May 21 14:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Remco van 't Veer X-Patchwork-Id: 39554 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 B704B27BBEA; Sat, 21 May 2022 15:49:13 +0100 (BST) 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 CE9AA27BBE9 for ; Sat, 21 May 2022 15:49:12 +0100 (BST) Received: from localhost ([::1]:36982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsQPn-0001iZ-Vd for patchwork@mira.cbaines.net; Sat, 21 May 2022 10:49:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsQPe-0001h6-Ln for guix-patches@gnu.org; Sat, 21 May 2022 10:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsQPe-00010r-D0 for guix-patches@gnu.org; Sat, 21 May 2022 10:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsQPe-0002I9-BL for guix-patches@gnu.org; Sat, 21 May 2022 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55516] [PATCH] gnu: Add quodlibet. Resent-From: Remco van 't Veer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 May 2022 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55516 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55516@debbugs.gnu.org Cc: liliana.prikler@ist.tugraz.at, jaft.r@outlook.com, Remco van 't Veer Received: via spool by 55516-submit@debbugs.gnu.org id=B55516.16531445178767 (code B ref 55516); Sat, 21 May 2022 14:49:02 +0000 Received: (at 55516) by debbugs.gnu.org; 21 May 2022 14:48:37 +0000 Received: from localhost ([127.0.0.1]:42795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsQP9-0002HD-QW for submit@debbugs.gnu.org; Sat, 21 May 2022 10:48:37 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:56193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsQP5-0002Gw-Oa for 55516@debbugs.gnu.org; Sat, 21 May 2022 10:48:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D40EA32002F9; Sat, 21 May 2022 10:48:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 21 May 2022 10:48:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; 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:sender:subject:subject:to:to; s=fm3; t=1653144501; x= 1653230901; bh=zRt760vW8bPWepuNHA5CfOj2jN8TTIBcNAY+r6z2G5k=; b=C 9wyE/R1FlBu0Li8NuyEA34Re9xXELUtyDUReYxgEFbVRhpqRQqA/8vD28r2hJwrv pSzBCgDjzs/RdqCfCQfV6qKj5nRZUU7AHyJnrC2gSUbvnoLI3pUSmCOQFKzbLEDN EqOF6v0Mve0oG7cwj4kyTwEPuF4P1O5pufe1hEwg/95jzURgsJupltI1F2xhb6UT hLLkU/+E46ugtRczmwItqw6EChrUEomjGnvRmPjitiyb6wzzOToT+xic/Nash9KM wZIDtDF1cZn/9SilMjaq7Nw1r1n6gKBlVxO8DlAD67dfcnGFmjgLd3C13WqDS/yk cilzn6rbG8LU/+jH3nQ8Q== 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1653144501; x= 1653230901; bh=zRt760vW8bPWepuNHA5CfOj2jN8TTIBcNAY+r6z2G5k=; b=N hMhCPeWyWUF2+em+8Y+gxkjxKsDvdG2QCt1iUr+o/Drcq+UmMHL8V8c29qwvuMK1 y89QtFGmkQAUSdcOim4s+xc7Y8YAHxcl6GUgsp+5SoXpkSplnSpdjVIPYJ7RXIgG oYmmMhkA+IRf9UblN1ZQOkDTtFu9gp01o/w2FY68qORBVoEb4lXc/j0MpDYxsR2D oxzuD50S8w4K5OxL8ZrzOk9GltJ5IXzn0SQ29nmSREVzGv/LiUooySWDsN90Mw3a 75PLOvMMwKLs9V9e61LiNVUjwAD8loR+3hm+Ohntf2QD4ZrnphA3pkO4vqmtW4FR K8kuo5nJtC8vZxHzIxbvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrieeigdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddujedmnecujfgurhephffvve fufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeftvghmtghouchvrghnucdk thcugggvvghruceorhgvmhgtohesrhgvmhifohhrkhhsrdhnvghtqeenucggtffrrghtth gvrhhnpedvhfefffevhfeludetgfdtheetvdeifefhteehveevgeeggfeiudekhfevkeej geenucffohhmrghinhepmhhushhikhgtuhgsvgdrtghomhdpghhithhhuhgsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhifvhes fhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i568842cc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 21 May 2022 10:48:20 -0400 (EDT) From: Remco van 't Veer Date: Sat, 21 May 2022 16:48:01 +0200 Message-Id: <20220521144801.25624-1-remco@remworks.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <87pmk7ueoq.fsf@remworks.net> References: <87pmk7ueoq.fsf@remworks.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/music.scm (quodlibet): New variable. --- gnu/packages/music.scm | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 210af3b166..5b4abc2e4e 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -45,6 +45,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Thomas Albers Raviola ;;; Copyright © 2022 Sughosha +;;; Copyright © 2022 Remco van 't Veer ;;; ;;; This file is part of GNU Guix. ;;; @@ -153,6 +154,7 @@ (define-module (gnu packages music) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) ;libsndfile #:use-module (gnu packages python) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) #:use-module (gnu packages python-compression) #:use-module (gnu packages python-web) @@ -6877,3 +6879,94 @@ (define-public musikcube streaming audio server.") (home-page "https://musikcube.com/") (license license:bsd-3))) + +(define-public quodlibet + (package + (name "quodlibet") + (version "4.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/quodlibet/quodlibet") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i5k93k3bfp7hpcwkbr865mbj9jam3jv2a5k1bazcyp4f5vdrb0v")))) + (build-system python-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + (guix build python-build-system) + ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) + (guix build utils)) + #:imported-modules (,@%gnu-build-system-modules + (guix build python-build-system) + (guix build glib-or-gtk-build-system)) + #:tests? #t + #:phases + (modify-phases %standard-phases + + (add-before 'check 'start-xorg-server + (lambda* (#:key inputs #:allow-other-keys) + (setenv "HOME" (getcwd)) ; test suite wants to home directory + #t)) + + (replace 'check + (lambda* (#:key tests? inputs #:allow-other-keys) + (if tests? + (begin + (invoke "dbus-run-session" "--" "xvfb-run" "pytest" "-vv" + "--disable-warnings" ; ignored upstream + "--ignore=tests/test_browsers_iradio.py" ; needs network + "--ignore=tests/quality" ; broken upstream + )) + (format #t "test suite not run~%")))) + + (add-after 'install 'glib-or-gtk-wrap ; ensure icons loaded + (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)) + + (add-after 'install 'wrap-gi-typelib ; GObject Introspection + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (for-each (lambda (prog) + (wrap-program (string-append out "/bin/" prog) + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + '("exfalso" "quodlibet"))) + #t))))) + + (native-inputs + (list xvfb-run gettext-minimal dbus)) + (inputs + (list adwaita-icon-theme + gdk-pixbuf + glib + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gstreamer + gtk+ + hicolor-icon-theme + librsvg + libsoup-minimal-2 + python + python-cheetah + python-dbus + python-feedparser + python-gst + python-iniconfig + python-mutagen + python-pycairo + python-pygobject + python-pytest + python-sgmllib3k + python-toml)) + (home-page "https://github.com/quodlibet/quodlibet") + (synopsis "Audio library, manager & player") + (description "Quod Libet is a cross-platform audio / music management +program. It provides many ways to view your local library, and supports +streaming audio and feeds (podcasts etc). It has extremely flexible metadata +editing and searching capabilities. Ex Falso is a program that uses the same +tag editing back-end as Quod Libet, but isn’t connected to an audio player.") + (license license:gpl2+)))