35 buildPythonPackage rec {
40 src = fetchFromGitHub {
43 rev = "refs/tags/${version}";
44 fetchSubmodules = true; # for test data
45 hash = "sha256-zbmU87hI9A1CVcBZ/5FU8z0t6SS4jfJk9bj9kLe/EHI=";
54 # https://github.com/librosa/librosa/issues/1754
55 # https://github.com/librosa/librosa/pull/1755
56 name = "matplotlib-3.8-compat.patch";
57 url = "https://github.com/librosa/librosa/commit/beef47885ce1255b43b65e48ea2054ddace37c6c.patch";
58 hash = "sha256-rrnlUHXHY2me4BWGs3wFq8WJmz75CbXTWKFp3VdJKzE=";
63 substituteInPlace setup.cfg \
64 --replace "--cov-report term-missing --cov librosa --cov-report=xml " ""
67 propagatedBuildInputs = [
83 passthru.optional-dependencies.matplotlib = [
87 # check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160
88 pythonImportsCheck = [
99 ] ++ passthru.optional-dependencies.matplotlib;
106 # requires network access
112 ] ++ lib.optionals stdenv.isDarwin [
113 # https://github.com/librosa/librosa/pull/1808
114 "test_pyin_multi_center"
118 description = "Python library for audio and music analysis";
119 homepage = "https://github.com/librosa/librosa";
120 changelog = "https://github.com/librosa/librosa/releases/tag/${version}";
121 license = licenses.isc;
122 maintainers = with maintainers; [ GuillaumeDesforges ];