python3Packages.reuse: use finalAttrs (#567889)

This commit is contained in:
Martin Weinelt
2026-09-28 18:55:29 +00:00
committed by GitHub

View File

@@ -25,7 +25,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "reuse";
version = "6.2.0";
pyproject = true;
@@ -33,7 +33,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "fsfe";
repo = "reuse-tool";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-J49RIt7MxnsMJqJAaGvYgUzXMHAT9/frMmrkhWXe5tQ=";
};
@@ -85,7 +85,7 @@ buildPythonPackage rec {
meta = {
description = "Tool for compliance with the REUSE Initiative recommendations";
homepage = "https://github.com/fsfe/reuse-tool";
changelog = "https://github.com/fsfe/reuse-tool/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/fsfe/reuse-tool/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = with lib.licenses; [
asl20
cc-by-sa-40
@@ -98,4 +98,4 @@ buildPythonPackage rec {
];
mainProgram = "reuse";
};
}
})