2022-03-07 20:43:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, coqpit
|
|
|
|
, fsspec
|
2022-03-16 17:00:31 +00:00
|
|
|
, pytorch
|
2022-03-07 20:43:23 +00:00
|
|
|
|
|
|
|
, pytestCheckHook
|
|
|
|
, soundfile
|
|
|
|
, tensorboardx
|
|
|
|
, torchvision
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "coqui-trainer";
|
2022-03-16 17:00:31 +00:00
|
|
|
version = "0.0.5";
|
2022-03-07 20:43:23 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coqui-ai";
|
|
|
|
repo = "Trainer";
|
2022-03-16 17:00:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-NsgCh+N2qWmRkTOjXqisVCP5aInH2zcNz6lsnIfVLiY=";
|
2022-03-07 20:43:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coqpit
|
|
|
|
fsspec
|
2022-03-16 17:00:31 +00:00
|
|
|
pytorch
|
2022-03-07 20:43:23 +00:00
|
|
|
soundfile
|
|
|
|
tensorboardx
|
|
|
|
];
|
|
|
|
|
2022-03-16 17:00:31 +00:00
|
|
|
# only one test and that requires training data from the internet
|
2022-03-07 20:43:23 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
torchvision
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"trainer"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A general purpose model trainer, as flexible as it gets";
|
|
|
|
homepage = "https://github.com/coqui-ai/Trainer";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.tts.members;
|
|
|
|
};
|
|
|
|
}
|