python312Packages.librosa: backport scipy 1.14 support

This commit is contained in:
Martin Weinelt 2024-07-05 16:09:10 +02:00
parent d154537783
commit 164b51670f
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
setuptools,
@ -47,6 +48,15 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools ];
patches = [
(fetchpatch2 {
# https://github.com/librosa/librosa/issues/1849
name = "librosa-scipy-1.14-compat.patch";
url = "https://github.com/librosa/librosa/commit/d0a12c87cdff715ffb8ac1c7383bba1031aa71e4.patch";
hash = "sha256-NHuGo4U1FRikb5OIkycQBvuZ+0OdG/VykTcuhXkLUug=";
})
];
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "--cov-report term-missing --cov librosa --cov-report=xml " ""