From patchwork Sat May 28 08:57:18 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: 39645 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 9D19A27BBEA; Sat, 28 May 2022 09:58:14 +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 1929827BBE9 for ; Sat, 28 May 2022 09:58:14 +0100 (BST) Received: from localhost ([::1]:42892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nusGz-0000ze-8X for patchwork@mira.cbaines.net; Sat, 28 May 2022 04:58:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nusGo-0000zQ-2n for guix-patches@gnu.org; Sat, 28 May 2022 04:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nusGn-0000Xu-PH for guix-patches@gnu.org; Sat, 28 May 2022 04:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nusGn-0007hD-Ou for guix-patches@gnu.org; Sat, 28 May 2022 04:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55516] [PATCH v2] gnu: Add quodlibet. Resent-From: Remco van 't Veer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 May 2022 08:58:01 +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, ludo@gnu.org, jaft.r@outlook.com, Remco van 't Veer Received: via spool by 55516-submit@debbugs.gnu.org id=B55516.165372827729572 (code B ref 55516); Sat, 28 May 2022 08:58:01 +0000 Received: (at 55516) by debbugs.gnu.org; 28 May 2022 08:57:57 +0000 Received: from localhost ([127.0.0.1]:36403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nusGd-0007gp-L4 for submit@debbugs.gnu.org; Sat, 28 May 2022 04:57:56 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:32801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nusGZ-0007gV-Lb for 55516@debbugs.gnu.org; Sat, 28 May 2022 04:57:50 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7EF795C00D7; Sat, 28 May 2022 04:57:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 28 May 2022 04:57:42 -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=1653728262; x= 1653814662; bh=ofBSwCBxydVl7hp71yqI8REcIXxgXpnxh1GipfztfcM=; b=a cqjAiovpyD6Tjkae2ycdHQYkPVYnbxw+vPSEKJB4WePTQ/z82oDBZCYmh8L6MP2Y RxM9VdQXFFYYxSWAMRXzGCGmFXnZ+behkmL0Qt9AttZkmAM4awJJaXi3B1zdgy59 zxUkyMcG/l4BKwQq/0TZxk+Jv7D0adSq58bhJd0bjYUNCzOEyr3RKDPj5OMBuebc yvBD5cro9TLXhnF1i+ss0Qb4DGtUXJ0ReV+y5AkYRl5450O1HSY3ZpzKyec1Sz+4 26ITlfhr7Txcr7fmt6xdx+FT95kJ3VPNVWF0Y2oIdSSbDJT965LMQ3jwZx8b56C0 mKG8Qg9nDr9Az2iJU+cJQ== 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=1653728262; x= 1653814662; bh=ofBSwCBxydVl7hp71yqI8REcIXxgXpnxh1GipfztfcM=; b=S i+MzzVoTwFnwOI3fL8gUi7UnFLJ6MQ7l749dUfkp5cPrMJ0oQlqmH+45uI4SO/OX Ex1Xjqei2Ww9+ETBnbi5FfpX2WkdKnm3n6ZUh40ZNOWjHlC/4qHi0lXCz9AGL66U oGX6a0IzCxljGCEjZWPhGDDpq/l78FqKOlP/fjfB/jTL/cQX+wXuwJhrcdX1Wk9T /O3ITLB6i1HYjALAlKnXi77IYEVJmOI6i8l+FRQT8Sw6EeVc8A3NnUXMhcN4ZPJI zvmrfBxqPLbG+23zC92WqTEnHZRKqkkzm7NR4RRYTjNxqmY5E1CSlktMeNOwkglL au0nswU4KTj554OnOPZ9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkedugddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddujedmnecujfgurhephffvve fufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeftvghmtghouchvrghnucdk thcugggvvghruceorhgvmhgtohesrhgvmhifohhrkhhsrdhnvghtqeenucggtffrrghtth gvrhhnpedvhfefffevhfeludetgfdtheetvdeifefhteehveevgeeggfeiudekhfevkeej geenucffohhmrghinhepmhhushhikhgtuhgsvgdrtghomhdpghhithhhuhgsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhifvhes fhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i568842cc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 28 May 2022 04:57:41 -0400 (EDT) From: Remco van 't Veer Date: Sat, 28 May 2022 10:57:18 +0200 Message-Id: <20220528085718.27307-1-remco@remworks.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <874k1ad4ka.fsf_-_@gnu.org> References: <874k1ad4ka.fsf_-_@gnu.org> 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 | 94 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index b224a145d5..7db6c2a037 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) @@ -6878,3 +6880,95 @@ (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 'test-suite-wants-to-home-directory + (lambda _ + (setenv "HOME" (getcwd)) + #t)) + + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (begin + (invoke "xvfb-run" "pytest" + "--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)) + (inputs + (list adwaita-icon-theme + gtk+ ;; propagates gdk-pixbuf+svg + glib + gsettings-desktop-schemas + 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+)))