diff options
Diffstat (limited to 'pkgs/development/python-modules/librosa/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/librosa/default.nix | 112 |
1 files changed, 54 insertions, 58 deletions
diff --git a/pkgs/development/python-modules/librosa/default.nix b/pkgs/development/python-modules/librosa/default.nix index 77bfb6aeca90..fa99efb4f66c 100644 --- a/pkgs/development/python-modules/librosa/default.nix +++ b/pkgs/development/python-modules/librosa/default.nix @@ -1,34 +1,35 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# runtime -, audioread -, decorator -, joblib -, lazy-loader -, matplotlib -, msgpack -, numba -, numpy -, pooch -, scikit-learn -, scipy -, soundfile -, soxr -, typing-extensions + # runtime + audioread, + decorator, + joblib, + lazy-loader, + matplotlib, + msgpack, + numba, + numpy, + pooch, + scikit-learn, + scipy, + soundfile, + soxr, + typing-extensions, -# tests -, ffmpeg-headless -, packaging -, pytest-mpl -, pytestCheckHook -, resampy -, samplerate + # tests + ffmpeg-headless, + packaging, + pytest-mpl, + pytestCheckHook, + resampy, + samplerate, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { hash = "sha256-zUKljPKWOhyb3Zv4KEUcvLsVkxVhL+rzErKycAl6jIg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' substituteInPlace setup.cfg \ @@ -69,14 +68,10 @@ buildPythonPackage rec { typing-extensions ]; - passthru.optional-dependencies.matplotlib = [ - matplotlib - ]; + passthru.optional-dependencies.matplotlib = [ matplotlib ]; # check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160 - pythonImportsCheck = [ - "librosa" - ]; + pythonImportsCheck = [ "librosa" ]; nativeCheckInputs = [ ffmpeg-headless @@ -91,26 +86,28 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # requires network access - "test_example" - "test_example_info" - "test_load_resample" - "test_cite_released" - "test_cite_badversion" - "test_cite_unreleased" - ] ++ lib.optionals stdenv.isDarwin [ - # 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" - ]; + disabledTests = + [ + # requires network access + "test_example" + "test_example_info" + "test_load_resample" + "test_cite_released" + "test_cite_badversion" + "test_cite_unreleased" + ] + ++ lib.optionals stdenv.isDarwin [ + # 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; { description = "Python library for audio and music analysis"; @@ -119,5 +116,4 @@ buildPythonPackage rec { license = licenses.isc; maintainers = with maintainers; [ GuillaumeDesforges ]; }; - } |
