From patchwork Sat Mar 26 01:12:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 1173 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 D0B0627BBEA; Sat, 26 Mar 2022 01:13:15 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 939C927BBE9 for ; Sat, 26 Mar 2022 01:13:15 +0000 (GMT) Received: from localhost ([::1]:41346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXuzO-0007to-OO for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 21:13:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXuzG-0007t9-Cm for guix-patches@gnu.org; Fri, 25 Mar 2022 21:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXuzG-00043b-48 for guix-patches@gnu.org; Fri, 25 Mar 2022 21:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXuzF-0001Eo-SU for guix-patches@gnu.org; Fri, 25 Mar 2022 21:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54571] [PATCH] gnu: music21: Patch executables and add missing dependencies. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Mar 2022 01:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54571 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54571@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16482571764744 (code B ref -1); Sat, 26 Mar 2022 01:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2022 01:12:56 +0000 Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXuz9-0001ER-NS for submit@debbugs.gnu.org; Fri, 25 Mar 2022 21:12:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:39216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXuz7-0001EK-SN for submit@debbugs.gnu.org; Fri, 25 Mar 2022 21:12:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXuz7-0007sz-NI for guix-patches@gnu.org; Fri, 25 Mar 2022 21:12:53 -0400 Received: from mx1.dismail.de ([78.46.223.134]:15470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXuz5-00042j-Ag for guix-patches@gnu.org; Fri, 25 Mar 2022 21:12:53 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 8fb2af9f for ; Sat, 26 Mar 2022 02:12:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=gSGOpiv2OcAGclamta/nfoCaKLRN88KU8RWcDY0o0KI=; b= U1uOxQydHauppvF9ufcQaShMlwJd3ThieiOaufdZFF82bRI6RV7W9/a3j43eoq10 +e94sUlp3mjThSdJQzKyhIb14olor37FgDyvmodLZAUnTm+8160bdx4wOurysv3W QxdU9i650FwWudlTk1CXDZk2NTg+mIlohxqSUUKJ0FafrI95NXI7mfhfIqNnMgVH jmdFrDqZbzxFR5eYKpvEYcEbrbxo/EPKVCdYm17oYPwzAPGfN25JXABmgHqJWdit N2Exnp93z3rceonGAW6aNHWq5RneMtuIEz2r0xk+Gu8TAqOeszLhvyflvn/BDGj+ EwPK7EiRLwN1C4GaF1A38A== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id d9425605 for ; Sat, 26 Mar 2022 02:12:47 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 8fae41c0 for ; Sat, 26 Mar 2022 02:12:47 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 2c92e21a (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 26 Mar 2022 02:12:47 +0100 (CET) Date: Fri, 25 Mar 2022 21:12:33 -0400 Message-Id: <20220326011233.25118-1-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * gnu/packages/music.scm (music21)[arguments]: Patch executables. [propagated-inputs]: Add python-matplotlib, python-jsonpickle, and python-numpy. [inputs]: Add lilypond, musescore, and xdg-utils. --- gnu/packages/music.scm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 9c8203aa80..2c6b530aac 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -1531,6 +1531,15 @@ (define-public music21 (arguments `(#:phases (modify-phases %standard-phases + (add-before 'build 'patch-executables + (lambda _ + (substitute* '("music21/environment.py" + "music21/lily/translate.py") + (("/usr/bin/lilypond") (which "lilypond")) + (("/usr/bin/mscore3") (which "mscore")) + (("/usr/bin/xdg-open") (which "xdg-open")) + (("LILYEXEC = 'lilypond'") + (string-append "LILYEXEC = '" (which "lilypond") "'"))))) (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? @@ -1538,8 +1547,17 @@ (define-public music21 ;; See: https://github.com/cuthbertLab/music21/issues/1164 (invoke "python" "-m" "music21.stream.tests"))))))) (propagated-inputs - (list python-chardet python-joblib python-more-itertools - python-webcolors)) + (list python-chardet + python-joblib + python-matplotlib + python-jsonpickle + python-more-itertools + python-webcolors + python-numpy)) + (inputs + (list lilypond + musescore + xdg-utils)) (home-page "https://web.mit.edu/music21/") (synopsis "Toolkit for Computational Musicology") (description