159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
55 lines
1,012 B
Nix
55 lines
1,012 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# dependencies
|
|
huggingface-hub,
|
|
hyperpyyaml,
|
|
joblib,
|
|
numpy,
|
|
packaging,
|
|
sentencepiece,
|
|
scipy,
|
|
torch,
|
|
torchaudio,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "speechbrain";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "speechbrain";
|
|
repo = "speechbrain";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-JoVu53HuTPkUIyJGqLE80yu7jzPje8/r5Hk6lJsz2XA=";
|
|
};
|
|
|
|
dependencies = [
|
|
huggingface-hub
|
|
hyperpyyaml
|
|
joblib
|
|
numpy
|
|
packaging
|
|
sentencepiece
|
|
scipy
|
|
torch
|
|
torchaudio
|
|
tqdm
|
|
];
|
|
|
|
doCheck = false; # requires sox backend
|
|
|
|
pythonImportsCheck = [ "speechbrain" ];
|
|
|
|
meta = {
|
|
description = "PyTorch-based Speech Toolkit";
|
|
homepage = "https://speechbrain.github.io";
|
|
changelog = "https://github.com/speechbrain/speechbrain/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|