Skip to content

Commit

Permalink
python311Packages.librosa: 0.10.1 -> 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed May 3, 2024
1 parent d121ce7 commit 5d76f83
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions pkgs/development/python-modules/librosa/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch

# build-system
# build-system
, setuptools

# runtime
# runtime
, audioread
, decorator
, joblib
Expand All @@ -23,7 +22,7 @@
, soxr
, typing-extensions

# tests
# tests
, ffmpeg-headless
, packaging
, pytest-mpl
Expand All @@ -34,37 +33,29 @@

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

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "librosa";
repo = "librosa";
rev = "refs/tags/${version}";
fetchSubmodules = true; # for test data
hash = "sha256-zbmU87hI9A1CVcBZ/5FU8z0t6SS4jfJk9bj9kLe/EHI=";
hash = "sha256-zUKljPKWOhyb3Zv4KEUcvLsVkxVhL+rzErKycAl6jIg=";
};

nativeBuildInputs = [
build-system = [
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 " ""
'';

propagatedBuildInputs = [
dependencies = [
audioread
decorator
joblib
Expand Down Expand Up @@ -104,14 +95,12 @@ buildPythonPackage rec {

disabledTests = [
# requires network access
"test_cite_badversion"
"test_cite_released"
"test_cite_unreleased"
"test_example"
"test_example_info"
"test_load_resample"
# does not converge
"test_nnls_vector"
] ++ lib.optionals stdenv.isDarwin [
# https://github.com/librosa/librosa/pull/1808
"test_pyin_multi_center"
];

meta = with lib; {
Expand Down

0 comments on commit 5d76f83

Please sign in to comment.