mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
python3Packages.ocrmypdf: use finalAttrs
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user