From 68e6b9411ebcc865621afd41ff87ccb03e97c096 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Fri, 20 Dec 2024 10:26:38 +0100 Subject: [PATCH] python312Packages.coqpit: 0.0.17 -> 0.1.2 and switch to idiap fork to unbreak build: original coqui-ai repo is not maintained anymore. https://www.idiap.ch/en/ --- .../python-modules/coqpit/default.nix | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/coqpit/default.nix b/pkgs/development/python-modules/coqpit/default.nix index 52487176f269..ed0b5d99bdb7 100644 --- a/pkgs/development/python-modules/coqpit/default.nix +++ b/pkgs/development/python-modules/coqpit/default.nix @@ -4,22 +4,32 @@ fetchFromGitHub, pythonAtLeast, pytestCheckHook, + hatchling, + typing-extensions, }: buildPythonPackage rec { - pname = "coqpit"; - version = "0.0.17"; - format = "setuptools"; + pname = "coqpit-config"; + version = "0.1.2"; + format = "pyproject"; src = fetchFromGitHub { - owner = "coqui-ai"; - repo = pname; + owner = "idiap"; + repo = "coqui-ai-coqpit"; rev = "refs/tags/v${version}"; - hash = "sha256-FY3PYd8dY5HFKkhD6kBzPt0k1eFugdqsO3yIN4oDk3E="; + hash = "sha256-3LZxoj2aFTpezakBymogkNPCaEBBaaUmyIa742cSMgU="; }; nativeCheckInputs = [ pytestCheckHook ]; + nativeBuildInputs = [ + hatchling + ]; + + propagatedBuildInputs = [ + typing-extensions + ]; + pythonImportsCheck = [ "coqpit" "coqpit.coqpit" @@ -35,7 +45,7 @@ buildPythonPackage rec { longDescription = '' Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization. ''; - homepage = "https://github.com/coqui-ai/coqpit"; + homepage = "https://github.com/idiap/coqui-ai-coqpit"; license = licenses.mit; maintainers = teams.tts.members; };