36 buildPythonPackage rec {
38 version = "0.10.2.post1";
41 src = fetchFromGitHub {
44 rev = "refs/tags/${version}";
45 fetchSubmodules = true; # for test data
46 hash = "sha256-0FbKVAFWmcFTW2dR27nif6hPZeIxFWYF1gTm4BEJZ/Q=";
49 nativeBuildInputs = [ setuptools ];
53 # https://github.com/librosa/librosa/issues/1849
54 name = "librosa-scipy-1.14-compat.patch";
55 url = "https://github.com/librosa/librosa/commit/d0a12c87cdff715ffb8ac1c7383bba1031aa71e4.patch";
56 hash = "sha256-NHuGo4U1FRikb5OIkycQBvuZ+0OdG/VykTcuhXkLUug=";
61 substituteInPlace setup.cfg \
62 --replace-fail "--cov-report term-missing --cov librosa --cov-report=xml " ""
65 propagatedBuildInputs = [
81 optional-dependencies.matplotlib = [ matplotlib ];
83 # check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160
84 pythonImportsCheck = [ "librosa" ];
93 ] ++ optional-dependencies.matplotlib;
101 # requires network access
106 "test_cite_badversion"
107 "test_cite_unreleased"
109 ++ lib.optionals stdenv.hostPlatform.isDarwin [
110 # crashing the python interpreter
111 "test_unknown_time_unit"
112 "test_unknown_wavaxis"
113 "test_waveshow_unknown_wavaxis"
114 "test_waveshow_bad_maxpoints"
115 "test_waveshow_deladaptor"
116 "test_waveshow_disconnect"
118 "test_axis_bound_warning"
123 description = "Python library for audio and music analysis";
124 homepage = "https://github.com/librosa/librosa";
125 changelog = "https://github.com/librosa/librosa/releases/tag/${version}";
126 license = licenses.isc;
127 maintainers = with maintainers; [ GuillaumeDesforges ];