python3Packages.ocrmypdf: use finalAttrs

This commit is contained in:
Robert Schütz
2026-07-16 16:38:30 -07:00
parent 9d14bb8ff8
commit 83db2e4722

View File

@@ -30,7 +30,7 @@
installShellFiles,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "ocrmypdf";
version = "17.8.1";
pyproject = true;
@@ -38,7 +38,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ocrmypdf";
repo = "OCRmyPDF";
tag = "v${version}";
tag = "v${finalAttrs.version}";
# The content of .git_archival.txt is substituted upon tarball creation,
# which creates indeterminism if master no longer points to the tag.
# See https://github.com/ocrmypdf/OCRmyPDF/issues/841
@@ -107,7 +107,7 @@ buildPythonPackage rec {
maintainers = with lib.maintainers; [
dotlambda
];
changelog = "https://github.com/ocrmypdf/OCRmyPDF/blob/${src.tag}/docs/releasenotes/version17.md";
changelog = "https://github.com/ocrmypdf/OCRmyPDF/blob/${finalAttrs.src.tag}/docs/releasenotes/version17.md";
mainProgram = "ocrmypdf";
};
}
})