mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
11cd8fcb70
https://github.com/coqui-ai/Trainer/releases/tag/v0.0.23 https://github.com/coqui-ai/Trainer/releases/tag/v0.0.24
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchpatch
|
|
, fetchFromGitHub
|
|
, pythonAtLeast
|
|
|
|
, coqpit
|
|
, fsspec
|
|
, torch-bin
|
|
, tensorboardx
|
|
, protobuf
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
|
, soundfile
|
|
, torchvision-bin
|
|
}:
|
|
|
|
let
|
|
pname = "trainer";
|
|
version = "0.0.24";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coqui-ai";
|
|
repo = "Trainer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-+Wr8kmHo3rWxknSN/jJVzXow95hNgth/j4OSj96gScE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's/^protobuf.*/protobuf/' requirements.txt
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
coqpit
|
|
fsspec
|
|
protobuf
|
|
psutil
|
|
soundfile
|
|
tensorboardx
|
|
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;
|
|
};
|
|
}
|