diff --git a/pkgs/development/python-modules/cheetah3/default.nix b/pkgs/development/python-modules/cheetah3/default.nix index b437fc55877a..5cc6b91f8a44 100644 --- a/pkgs/development/python-modules/cheetah3/default.nix +++ b/pkgs/development/python-modules/cheetah3/default.nix @@ -5,15 +5,17 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cheetah3"; version = "3.4.0.post5"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "CheetahTemplate3"; repo = "cheetah3"; - tag = version; + tag = finalAttrs.version; hash = "sha256-qWV6ncSe4JbGZD7sLc/kEXY1pUM1II24UgsS/zX872Y="; }; @@ -26,8 +28,8 @@ buildPythonPackage rec { meta = { description = "Template engine and code generation tool"; homepage = "http://www.cheetahtemplate.org/"; - changelog = "https://github.com/CheetahTemplate3/cheetah3/releases/tag/${version}"; + changelog = "https://github.com/CheetahTemplate3/cheetah3/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pjjw ]; }; -} +})