depot/third_party/nixpkgs/pkgs/development/python-modules/coqui-trainer/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

60 lines
1,021 B
Nix

{ lib
, buildPythonPackage
, fetchpatch
, fetchFromGitHub
, pythonAtLeast
, coqpit
, fsspec
, pytorch-bin
, tensorboardx
, protobuf
, pytestCheckHook
, soundfile
, torchvision-bin
}:
let
pname = "coqui-trainer";
version = "0.0.12";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
src = fetchFromGitHub {
owner = "coqui-ai";
repo = "Trainer";
rev = "v${version}";
hash = "sha256-MSB3XbQALEKQi6Jtr/d2K8cIqyZryebYEcewGG48HV0=";
};
propagatedBuildInputs = [
coqpit
fsspec
pytorch-bin
soundfile
tensorboardx
protobuf
];
# only one test and that requires training data from the internet
doCheck = false;
checkInputs = [
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";
license = licenses.asl20;
maintainers = teams.tts.members;
};
}