1{ lib 2, buildPythonPackage 3, fetchPypi 4, joblib 5, matplotlib 6, six 7, scikit-learn 8, decorator 9, audioread 10, resampy 11, soundfile 12, pooch 13}: 14 15buildPythonPackage rec { 16 pname = "librosa"; 17 version = "0.9.2"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-W1drXv3OQo6QvJiL3VqVPRKnJ+X5MfMNdMU7Y6u+PIk="; 22 }; 23 24 propagatedBuildInputs = [ joblib matplotlib six scikit-learn decorator audioread resampy soundfile pooch ]; 25 26 # No tests 27 # 1. Internet connection is required 28 # 2. Got error "module 'librosa' has no attribute 'version'" 29 doCheck = false; 30 31 # check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160 32 pythonImportsCheck = [ "librosa" ]; 33 34 meta = with lib; { 35 description = "Python module for audio and music processing"; 36 homepage = "http://librosa.github.io/"; 37 license = licenses.isc; 38 maintainers = with maintainers; [ GuillaumeDesforges ]; 39 }; 40 41}