Skip to content

Commit

Permalink
python312Packages.trainer: 0.0.36 -> 0.2.0 and switch to idiap fork
Browse files Browse the repository at this point in the history
 to unbreak build: original coqui-ai repo is not maintained anymore.
 https://www.idiap.ch/en/
  • Loading branch information
jbgi committed Dec 20, 2024
1 parent 8622036 commit 29f2db4
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions pkgs/development/python-modules/trainer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
fetchFromGitHub,
fetchpatch,

hatchling,

coqpit,
fsspec,
torch,
Expand All @@ -17,32 +19,24 @@
}:

let
pname = "trainer";
version = "0.0.36";
pname = "coqui-tts-trainer";
version = "0.2.0";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";

src = fetchFromGitHub {
owner = "coqui-ai";
repo = "Trainer";
owner = "idiap";
repo = "coqui-ai-Trainer";
rev = "refs/tags/v${version}";
hash = "sha256-z6TOzWqE3NytkdG3nUzh9GpFVGQEXFyzSQ8gvdB4wiw=";
hash = "sha256-zm8BTfXvfwuWpmHFcSxuu+/V4bKanSBU2dniQboVdLY=";
};

patches = [
(fetchpatch {
name = "add-support-for-python312.patch";
hash = "sha256-V5RPn/2pGKzQrf/SIRU3imo6nBhpBEJpI7HsFYbVZj4=";
url = "https://github.com/coqui-ai/Trainer/commit/0278012c7e6f5972b656d11757add4ab89f6d272.patch";
})
nativeBuildInputs = [
hatchling
];

postPatch = ''
sed -i 's/^protobuf.*/protobuf/' requirements.txt
'';

propagatedBuildInputs = [
coqpit
fsspec
Expand Down

0 comments on commit 29f2db4

Please sign in to comment.