Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.librosa: 0.10.1 -> 0.10.2-pre.1474631 #308533

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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