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