blob: 466d6db8da5aac1139a3d5cece2cd15e280909fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, coqpit
, fsspec
, torch-bin
, tensorboard
, protobuf
, psutil
, pytestCheckHook
, soundfile
, torchvision-bin
}:
let
pname = "trainer";
version = "0.0.31";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
src = fetchFromGitHub {
owner = "coqui-ai";
repo = "Trainer";
rev = "refs/tags/v${version}";
hash = "sha256-avZuujeWG/UGkj7fcGB99Fw7KYktJPIDf8oB4wjoiD4=";
};
postPatch = ''
sed -i 's/^protobuf.*/protobuf/' requirements.txt
'';
propagatedBuildInputs = [
coqpit
fsspec
protobuf
psutil
soundfile
tensorboard
torch-bin
];
# only one test and that requires training data from the internet
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
torchvision-bin
];
pythonImportsCheck = [
"trainer"
];
meta = with lib; {
description = "A general purpose model trainer, as flexible as it gets";
homepage = "https://github.com/coqui-ai/Trainer";
changelog = "https://github.com/coqui-ai/Trainer/releases/tag/v${version}";
license = licenses.asl20;
maintainers = teams.tts.members;
};
}
|