depot/third_party/nixpkgs/pkgs/development/python-modules/speechbrain/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

55 lines
1 KiB
Nix

{ buildPythonPackage
, fetchFromGitHub
, huggingface-hub
, hyperpyyaml
, joblib
, lib
, numpy
, packaging
, pythonOlder
, sentencepiece
, scipy
, torch
, torchaudio
, tqdm
}:
buildPythonPackage rec {
pname = "speechbrain";
version = "0.5.16";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "speechbrain";
repo = "speechbrain";
rev = "refs/tags/v${version}";
hash = "sha256-Mve6wr3klXMe7sCiJjPuzUPKGHRyI/LzTe6Ea39zNHw=";
};
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 ];
};
}