shtab: use finalAttrs (#507958)

This commit is contained in:
Pol Dellaiera
2026-04-08 20:22:26 +00:00
committed by GitHub
@@ -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 ];
};
}
})