From fd3f7f6ff6ead2e0a600e275f6b5b7686f0ab5b3 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 11 Jan 2025 22:56:06 +0100 Subject: [PATCH] gnu: python-librosa: Update to 0.10.2.post1. * gnu/packages/audio.scm (python-librosa): Update to 0.10.2.post1. [source]: Fetch git repository. [build-system]: Use pyproject-build-system. [arguments]: Enable most tests. [propagated-inputs]: Add python-lazy-loader, python-msgpack, python-soxr, and python-typing-extensions; remove python-packaging and python-resampy. [native-inputs]: Add python-matplotlib, python-packaging, python-pytest, python-pytest-cov, python-resampy, python-setuptools, and python-wheel. Change-Id: If05901c939a0be4be891be94ce89faa72e9db9c0 --- gnu/packages/audio.scm | 44 +++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index a736946fe790bfda376f68135098a7ef3c27dcc5..76b16bc0fd393f3a7971fb270e1d3d8995f6fd2d 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -6487,30 +6487,52 @@ Home Page}.") (define-public python-librosa (package (name "python-librosa") - (version "0.8.1") + (version "0.10.2.post1") (source (origin - (method url-fetch) - (uri (pypi-uri "librosa" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/librosa/librosa/") + (commit version) + ;; For test files. + (recursive? #true))) (sha256 - (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5")))) - (build-system python-build-system) + (base32 "1x37148y1rh4sq2nc59iw9jlza3zwawxnlb7bd9w36an05aclmnh")))) + (build-system pyproject-build-system) (arguments - ;; Tests require internet connection to download MATLAB scripts for - ;; generating the testing data. - `(#:tests? #f)) + (list + #:test-flags + ;; Ignore --mpl flag. + '(list "-c" "/dev/null" + "-k" (string-append + ;; Resampling tests require python-samplerate. + "not resample" + ;; These tests use Pooch and download data files. + " and not example and not test_cite" + ;; XXX assert 22050 == 31744 + " and not test_stream")))) (propagated-inputs (list python-audioread python-decorator python-joblib + python-lazy-loader + python-msgpack python-numba python-numpy - python-packaging python-pooch - python-resampy python-scikit-learn python-scipy - python-soundfile)) + python-soundfile + python-soxr + python-typing-extensions)) + (native-inputs + (list python-matplotlib + python-packaging + python-pytest + python-pytest-cov + python-resampy + python-setuptools + python-wheel)) (home-page "https://librosa.org") (synopsis "Python module for audio and music processing") (description