summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-06-25 20:42:59 -0300
committerVinicius Monego <monego@posteo.net>2025-06-29 00:04:45 -0300
commit1e44e976e7f01defc9bb0bfe8153bb6470cc2c32 (patch)
treef61b19ae18c87a76383bda4593637c264a838c20 /gnu/packages/python-xyz.scm
parent7aae3e3b8ac696f1b285ef75d28c94fa38972a06 (diff)
gnu: python-mir-eval: Update to 0.8.2.
* gnu/packages/python-xyz.scm (python-mir-eval): Update to 0.8.2. [source]: Fetch from GitHub. [build-system]: Use pyproject-build-system. [arguments]: Add phase 'cd-tests' before 'check'. [propagated-inputs]: Remove python-future, python-six. Add python-decorator. [native-inputs]: Add python-pytest, python-pytest-cov, python-pytest-mpl, python-setuptools, python-wheel. [home-page]: Follow redirect. Change-Id: I63ce6b9295292595218e83edf8590134bd80a5f6
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm34
1 files changed, 25 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bc7967b35f..9fbdd94b67 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6444,18 +6444,34 @@ server.")
(define-public python-mir-eval
(package
(name "python-mir-eval")
- (version "0.7")
+ (version "0.8.2")
(source (origin
- (method url-fetch)
- (uri (pypi-uri "mir_eval" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mir-evaluation/mir_eval")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "0pp6xdflqhj2czhb2w3kk2c7mx4h2hj0n5rabiaafrbcfsjvmzp1"))))
- (build-system python-build-system)
- (propagated-inputs (list python-future python-numpy python-scipy
- python-six))
- (native-inputs (list python-matplotlib))
- (home-page "https://github.com/craffel/mir_eval")
+ "0mna57q2r0cjsvgz67v6bay1c6a33wl33yna9s083wfqhjmf9bqf"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'cd-tests
+ (lambda _
+ ;; Move to 'tests' directory because tests read data files from
+ ;; a relative path.
+ (chdir "tests"))))))
+ (propagated-inputs (list python-decorator python-numpy python-scipy))
+ (native-inputs (list python-matplotlib
+ python-pytest
+ python-pytest-cov ; used by default
+ python-pytest-mpl
+ python-setuptools
+ python-wheel))
+ (home-page "https://github.com/mir-evaluation/mir_eval")
(synopsis "Common metrics for common audio/music processing tasks")
(description "This is a Python library for computing common heuristic
accuracy scores for various music/audio information retrieval/signal