diff --git a/pkgs/development/python-modules/shtab/default.nix b/pkgs/development/python-modules/shtab/default.nix index a86309e923d2..d239d5d40837 100644 --- a/pkgs/development/python-modules/shtab/default.nix +++ b/pkgs/development/python-modules/shtab/default.nix @@ -10,7 +10,7 @@ bashInteractive, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "shtab"; version = "1.8.0"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "iterative"; repo = "shtab"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-VK3+JLb9Lh+YHixMa1Hjm5bYJ9vSmMPIkN6c3DeHDo8="; }; @@ -40,8 +40,8 @@ buildPythonPackage rec { description = "Module for shell tab completion of Python CLI applications"; mainProgram = "shtab"; homepage = "https://docs.iterative.ai/shtab/"; - changelog = "https://github.com/iterative/shtab/releases/tag/${src.tag}"; + changelog = "https://github.com/iterative/shtab/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})