Skip to content

Commit

Permalink
python3Packages.librosa: 0.10.1 -> 0.10.2-pre.1474631
Browse files Browse the repository at this point in the history
Update `librosa` to 0.10.2-pre.1474631, fixes #306859
  • Loading branch information
GuillaumeDesforges committed May 2, 2024
1 parent 79f4b5b commit 2ca33d6
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions pkgs/development/python-modules/librosa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
, fetchFromGitHub
, fetchpatch

# build-system
# build-system
, setuptools

# runtime
# runtime
, audioread
, decorator
, joblib
Expand All @@ -23,7 +23,7 @@
, soxr
, typing-extensions

# tests
# tests
, ffmpeg-headless
, packaging
, pytest-mpl
Expand All @@ -34,31 +34,24 @@

buildPythonPackage rec {
pname = "librosa";
version = "0.10.1";
# use pre-release version to fix #306859
version = "0.10.2-pre.1474631";
format = "pyproject";

src = fetchFromGitHub {
owner = "librosa";
repo = "librosa";
rev = "refs/tags/${version}";
# to be used again when version is bumped to a release
# rev = "refs/tags/${version}";
rev = "14746316d931e331d1b6686d60bb593312b1d29e";
fetchSubmodules = true; # for test data
hash = "sha256-zbmU87hI9A1CVcBZ/5FU8z0t6SS4jfJk9bj9kLe/EHI=";
hash = "sha256-UE5Fex78CbgvtCRnO5UQqDbavO2gpCcXI6nIR38rCxw=";
};

nativeBuildInputs = [
setuptools
];

patches = [
(fetchpatch {
# https://github.com/librosa/librosa/issues/1754
# https://github.com/librosa/librosa/pull/1755
name = "matplotlib-3.8-compat.patch";
url = "https://github.com/librosa/librosa/commit/beef47885ce1255b43b65e48ea2054ddace37c6c.patch";
hash = "sha256-rrnlUHXHY2me4BWGs3wFq8WJmz75CbXTWKFp3VdJKzE=";
})
];

postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report term-missing --cov librosa --cov-report=xml " ""
Expand Down Expand Up @@ -104,14 +97,12 @@ buildPythonPackage rec {

disabledTests = [
# requires network access
"test_cite_badversion"
"test_cite_released"
"test_cite_unreleased"
"test_example"
"test_example_info"
"test_load_resample"
# does not converge
"test_nnls_vector"
] ++ lib.optionals stdenv.isDarwin [
# https://github.com/librosa/librosa/pull/1808
"test_pyin_multi_center"
];

meta = with lib; {
Expand Down

0 comments on commit 2ca33d6

Please sign in to comment.