From 449ac248c212982a9c11230e0dc3fe270087abba Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Jun 2026 20:57:15 +0200 Subject: [PATCH 1/2] python3Packages.ttp-templates: 0.5.1 -> 0.5.8 Changelog: https://github.com/dmulyalin/ttp_templates/releases/tag/0.5.8 --- .../development/python-modules/ttp-templates/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ttp-templates/default.nix b/pkgs/development/python-modules/ttp-templates/default.nix index c0eef67aa1a9..e33faacb7975 100644 --- a/pkgs/development/python-modules/ttp-templates/default.nix +++ b/pkgs/development/python-modules/ttp-templates/default.nix @@ -3,22 +3,27 @@ buildPythonPackage, fetchFromGitHub, poetry-core, + pydantic, }: buildPythonPackage rec { 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="; + hash = "sha256-W6F0/CGm713HhCtgqv+tEDm5mlkx0JJRmnUc9j+Fnvs="; }; nativeBuildInputs = [ poetry-core ]; + dependencies = [ + pydantic + ]; + postPatch = '' # Drop circular dependency on ttp sed -i '/ttp =/d' pyproject.toml From dfb87c049e1c2b15e6a6622db4b0195f4c041331 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Jun 2026 21:02:18 +0200 Subject: [PATCH 2/2] python3Packages.ttp-templates: migrate to finalAttrs --- .../python-modules/ttp-templates/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/ttp-templates/default.nix b/pkgs/development/python-modules/ttp-templates/default.nix index e33faacb7975..f6818c7e6a73 100644 --- a/pkgs/development/python-modules/ttp-templates/default.nix +++ b/pkgs/development/python-modules/ttp-templates/default.nix @@ -6,7 +6,7 @@ pydantic, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ttp-templates"; version = "0.5.8"; pyproject = true; @@ -14,15 +14,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "dmulyalin"; repo = "ttp_templates"; - tag = version; + tag = finalAttrs.version; hash = "sha256-W6F0/CGm713HhCtgqv+tEDm5mlkx0JJRmnUc9j+Fnvs="; }; nativeBuildInputs = [ poetry-core ]; - dependencies = [ - pydantic - ]; + dependencies = [ pydantic ]; postPatch = '' # Drop circular dependency on ttp @@ -35,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 ]; }; -} +})