diff --git a/pkgs/development/python-modules/ttp-templates/default.nix b/pkgs/development/python-modules/ttp-templates/default.nix index c0eef67aa1a9..f6818c7e6a73 100644 --- a/pkgs/development/python-modules/ttp-templates/default.nix +++ b/pkgs/development/python-modules/ttp-templates/default.nix @@ -3,22 +3,25 @@ buildPythonPackage, fetchFromGitHub, poetry-core, + pydantic, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ttp-templates"; - version = "0.5.1"; + version = "0.5.8"; pyproject = true; src = fetchFromGitHub { owner = "dmulyalin"; repo = "ttp_templates"; - tag = version; - hash = "sha256-lGlg8AgP7VtwZm5xfpEzs1VJSbfBdYns/l4ROP0LtEQ="; + tag = finalAttrs.version; + hash = "sha256-W6F0/CGm713HhCtgqv+tEDm5mlkx0JJRmnUc9j+Fnvs="; }; nativeBuildInputs = [ poetry-core ]; + dependencies = [ pydantic ]; + postPatch = '' # Drop circular dependency on ttp sed -i '/ttp =/d' pyproject.toml @@ -30,8 +33,8 @@ buildPythonPackage rec { meta = { description = "Template Text Parser Templates collections"; homepage = "https://github.com/dmulyalin/ttp_templates"; - changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}"; + changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})