Unverified Commit 7a125351 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.librosa: skip failing tests on python>=3.14 (#495131)

parents b60259a1 7980ce82
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -34,9 +34,10 @@
  resampy,
  samplerate,
  writableTmpDirAsHomeHook,
  pythonAtLeast,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "librosa";
  version = "0.11.0";
  pyproject = true;
@@ -44,7 +45,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "librosa";
    repo = "librosa";
    tag = version;
    tag = finalAttrs.version;
    fetchSubmodules = true; # for test data
    hash = "sha256-T58J/Gi3tHzelr4enbYJi1KmO46QxE5Zlhkc0+EgvRg=";
  };
@@ -89,7 +90,7 @@ buildPythonPackage rec {
    samplerate
    writableTmpDirAsHomeHook
  ]
  ++ optional-dependencies.matplotlib;
  ++ finalAttrs.passthru.optional-dependencies.matplotlib;

  disabledTests = [
    # requires network access
@@ -127,13 +128,20 @@ buildPythonPackage rec {
    "test_istft_multi"
    "test_pitch_shift_multi"
    "test_time_stretch_multi"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # ValueError: cannot resize an array that references or is referenced
    "test_resample_mono"
    "test_resample_multichannel"
    "test_resample_scale"
    "test_resample_stereo"
  ];

  meta = {
    description = "Python library for audio and music analysis";
    homepage = "https://github.com/librosa/librosa";
    changelog = "https://github.com/librosa/librosa/releases/tag/${version}";
    changelog = "https://github.com/librosa/librosa/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ carlthome ];
  };
}
})