2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 15:45:20 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, joblib
|
|
|
|
, matplotlib
|
|
|
|
, six
|
2021-05-14 18:46:36 +00:00
|
|
|
, scikit-learn
|
2018-10-16 15:45:20 +00:00
|
|
|
, decorator
|
|
|
|
, audioread
|
|
|
|
, resampy
|
2019-11-13 10:55:48 +00:00
|
|
|
, soundfile
|
2020-08-27 10:53:09 +00:00
|
|
|
, pooch
|
2018-10-16 15:45:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "librosa";
|
2022-07-16 10:59:16 +00:00
|
|
|
version = "0.9.2";
|
2018-10-16 15:45:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-16 10:59:16 +00:00
|
|
|
sha256 = "sha256-W1drXv3OQo6QvJiL3VqVPRKnJ+X5MfMNdMU7Y6u+PIk=";
|
2018-10-16 15:45:20 +00:00
|
|
|
};
|
|
|
|
|
2021-05-14 18:46:36 +00:00
|
|
|
propagatedBuildInputs = [ joblib matplotlib six scikit-learn decorator audioread resampy soundfile pooch ];
|
2018-10-16 15:45:20 +00:00
|
|
|
|
|
|
|
# No tests
|
2020-08-27 10:53:09 +00:00
|
|
|
# 1. Internet connection is required
|
|
|
|
# 2. Got error "module 'librosa' has no attribute 'version'"
|
2018-10-16 15:45:20 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-27 10:53:09 +00:00
|
|
|
# check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160
|
|
|
|
pythonImportsCheck = [ "librosa" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 15:45:20 +00:00
|
|
|
description = "Python module for audio and music processing";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://librosa.github.io/";
|
2018-10-16 15:45:20 +00:00
|
|
|
license = licenses.isc;
|
2020-08-27 10:53:09 +00:00
|
|
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
2018-10-16 15:45:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|