Unverified Commit a2d71d4a authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python312Packages.librosa: 0.10.1 -> 0.10.2

parent f7c19fed
Loading
Loading
Loading
Loading
+16 −18
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch

# build-system
, setuptools
@@ -34,7 +33,7 @@

buildPythonPackage rec {
  pname = "librosa";
  version = "0.10.1";
  version = "0.10.2";
  format = "pyproject";

  src = fetchFromGitHub {
@@ -42,26 +41,16 @@ buildPythonPackage rec {
    repo = "librosa";
    rev = "refs/tags/${version}";
    fetchSubmodules = true; # for test data
    hash = "sha256-zbmU87hI9A1CVcBZ/5FU8z0t6SS4jfJk9bj9kLe/EHI=";
    hash = "sha256-zUKljPKWOhyb3Zv4KEUcvLsVkxVhL+rzErKycAl6jIg=";
  };

  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 " ""
      --replace-fail "--cov-report term-missing --cov librosa --cov-report=xml " ""
  '';

  propagatedBuildInputs = [
@@ -107,11 +96,20 @@ buildPythonPackage rec {
    "test_example"
    "test_example_info"
    "test_load_resample"
    # does not converge
    "test_nnls_vector"
    "test_cite_released"
    "test_cite_badversion"
    "test_cite_unreleased"
  ] ++ lib.optionals stdenv.isDarwin [
    # https://github.com/librosa/librosa/pull/1808
    "test_pyin_multi_center"
    # crashing the python interpreter
    "test_unknown_time_unit"
    "test_unknown_wavaxis"
    "test_waveshow_unknown_wavaxis"
    "test_waveshow_bad_maxpoints"
    "test_waveshow_deladaptor"
    "test_waveshow_disconnect"
    "test_unknown_axis"
    "test_axis_bound_warning"
    "test_auto_aspect"
  ];

  meta = with lib; {