all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#51764] [PATCH] gnu: Add music21.
@ 2021-11-11  9:12 jgart via Guix-patches via
  2021-11-15 10:19 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: jgart via Guix-patches via @ 2021-11-11  9:12 UTC (permalink / raw)
  To: 51764; +Cc: jgart

* gnu/packages/music.scm (music21): New variable.
---
 gnu/packages/music.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 32ed4081b6..52b462815c 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1528,6 +1528,38 @@ (define-public lilypond
     ;; more than an hour of silence, so double the max silent time.
     (properties `((max-silent-time . 7200)))))
 
+(define-public music21
+  (package
+    (name "music21")
+    (version "7.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "music21" version))
+        (sha256
+          (base32 "17v2id8qm99xqymqsdczq173fmbdha4w109ahh8j1d9l5a7mqc86"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               ;; See: https://github.com/cuthbertLab/music21/issues/1164
+               (invoke "python" "-m" "music21.stream.tests")))))))
+    (propagated-inputs
+      `(("python-chardet" ,python-chardet)
+        ("python-joblib" ,python-joblib)
+        ("python-more-itertools" ,python-more-itertools)
+        ("python-webcolors" ,python-webcolors)))
+    (home-page "https://web.mit.edu/music21/")
+    (synopsis "Toolkit for Computational Musicology")
+    (description
+"Music21 is a set of tools for helping scholars and other active listeners
+answer questions about music quickly and simply.")
+    (license (list license:bsd-3 license:gpl3+))))
+
 (define-public abjad
   (package
     (name "abjad")
-- 
2.33.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#51764] [PATCH] gnu: Add music21.
  2021-11-11  9:12 [bug#51764] [PATCH] gnu: Add music21 jgart via Guix-patches via
@ 2021-11-15 10:19 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-11-15 10:19 UTC (permalink / raw)
  To: 51764; +Cc: 51764-done, jgart

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/music.scm (music21): New variable.

Thank you. Applied, with the change below.

> +    (license (list license:bsd-3 license:gpl3+))))

I added a comment explaining the software is dual-licensed, and also
fixed the second license, which is lgpl3+, not gpl3+.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-15 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-11  9:12 [bug#51764] [PATCH] gnu: Add music21 jgart via Guix-patches via
2021-11-15 10:19 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.