Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 965 B view raw
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.8.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "af0b9f2ed4bbf6aecbc448a4cd27c16453c397cb6bef0f0cfba0e63afea2b839"; 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}