From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 54571@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#54571] [PATCH] gnu: music21: Patch executables and add missing dependencies.
Date: Fri, 25 Mar 2022 21:12:33 -0400 [thread overview]
Message-ID: <20220326011233.25118-1-jgart@dismail.de> (raw)
* 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
--
2.34.0
next reply other threads:[~2022-03-26 1:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-26 1:12 jgart via Guix-patches via [this message]
2022-03-26 9:33 ` [bug#54571] [PATCH] gnu: music21: Patch executables and add missing dependencies Maxime Devos
2022-03-26 9:34 ` Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220326011233.25118-1-jgart@dismail.de \
--to=guix-patches@gnu.org \
--cc=54571@debbugs.gnu.org \
--cc=jgart@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).