depot/third_party/nixpkgs/pkgs/development/python-modules/librosa/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

41 lines
952 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, joblib
, matplotlib
, six
, scikit-learn
, decorator
, audioread
, resampy
, soundfile
, pooch
}:
buildPythonPackage rec {
pname = "librosa";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-W1drXv3OQo6QvJiL3VqVPRKnJ+X5MfMNdMU7Y6u+PIk=";
};
propagatedBuildInputs = [ joblib matplotlib six scikit-learn decorator audioread resampy soundfile pooch ];
# No tests
# 1. Internet connection is required
# 2. Got error "module 'librosa' has no attribute 'version'"
doCheck = false;
# check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160
pythonImportsCheck = [ "librosa" ];
meta = with lib; {
description = "Python module for audio and music processing";
homepage = "http://librosa.github.io/";
license = licenses.isc;
maintainers = with maintainers; [ GuillaumeDesforges ];
};
}