python3Packages.librosa: 0.10.0 -> 0.10.1

This commit is contained in:
Martin Weinelt 2023-09-15 14:06:25 +02:00
parent c19b8ff91f
commit b5b1507a02

View File

@ -33,7 +33,7 @@
buildPythonPackage rec {
pname = "librosa";
version = "0.10.0";
version = "0.10.1";
format = "pyproject";
src = fetchFromGitHub {
@ -41,22 +41,23 @@ buildPythonPackage rec {
repo = "librosa";
rev = "refs/tags/${version}";
fetchSubmodules = true; # for test data
hash = "sha256-MXzPIcbG8b1JwhEyAZG4DRObGaHq+ipVHMrZCzaxLdE=";
hash = "sha256-zbmU87hI9A1CVcBZ/5FU8z0t6SS4jfJk9bj9kLe/EHI=";
};
patches = [
# https://github.com/librosa/librosa/pull/1731
(fetchpatch {
name = "support-scipy-1.11.patch";
url = "https://github.com/librosa/librosa/commit/12dee8eabed7df14c5622b52c05393ddfeb11f4b.patch";
hash = "sha256-JxTXU0Mc+QYpsafjoGLaIccD7EdCYJvIVianeosYpw4=";
})
];
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 " ""