Commit 33e8ff3f authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.speechbrain: init at 0.5.14

parent fdce5ed2
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchFromGitHub
, huggingface-hub
, hyperpyyaml
, joblib
, lib
, numpy
, packaging
, pythonOlder
, sentencepiece
, scipy
, torch
, torchaudio
, tqdm
}:

buildPythonPackage rec {
  pname = "speechbrain";
  version = "0.5.14";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "speechbrain";
    repo = "speechbrain";
    rev = "refs/tags/v${version}";
    hash = "sha256-r1q7JO+H7ynfrzlihRTY0PtMGmvwm98BHUZV534ABXw=";
  };

  propagatedBuildInputs = [
    huggingface-hub
    hyperpyyaml
    joblib
    numpy
    packaging
    sentencepiece
    scipy
    torch
    torchaudio
    tqdm
  ];

  doCheck = false; # requires sox backend

  pythonImportsCheck = [ "speechbrain" ];

  meta = with lib; {
    description = "A PyTorch-based Speech Toolkit";
    homepage = "https://speechbrain.github.io";
    changelog = "https://github.com/speechbrain/speechbrain/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ GaetanLepage ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -11699,6 +11699,8 @@ self: super: with self; {

  spectral-cube = callPackage ../development/python-modules/spectral-cube { };

  speechbrain = callPackage ../development/python-modules/speechbrain { };

  speedtest-cli = callPackage ../development/python-modules/speedtest-cli { };

  speg = callPackage ../development/python-modules/speg { };