python312Packages.ocrmypdf 15.4.4 -> 16.0.4 https://repology.org/project/ocrmypdf/versions attrpath: python312Packages.ocrmypdf Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/fpdyz05p1mqc12k89dqrhsn832z6s6bx-packages.json.drv building '/nix/store/fpdyz05p1mqc12k89dqrhsn832z6s6bx-packages.json.drv'... Going to be running update for following packages: - python3.12-ocrmypdf-15.4.4 Press Enter key to continue... Running update for: - python3.12-ocrmypdf-15.4.4: UPDATING ... - python3.12-ocrmypdf-15.4.4: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index 1104bcc02f82..e71655995ce0 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pname = "ocrmypdf"; - version = "15.4.4"; + version = "16.0.4"; disabled = pythonOlder "3.9"; @@ -40,14 +40,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ocrmypdf"; repo = "OCRmyPDF"; - rev = "v${version}"; + rev = "refs/tags/v${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 postFetch = '' rm "$out/.git_archival.txt" ''; - hash = "sha256-Ff0OrSJFglVPpSNB0KvDMnatj+P57zWdcVAFaM+Sg0s="; + hash = "sha256-2V236MUpJCOM0MOuVh1d0q//rUVUjg6mJpEcoGaFdgY="; }; patches = [ No auto update branch exists Old version 15.4.4" not present in staging derivation file with contents: { lib , buildPythonPackage , deprecation , fetchFromGitHub , ghostscript , hypothesis , img2pdf , importlib-resources , jbig2enc , packaging , pdfminer-six , pikepdf , pillow , pluggy , pngquant , pytest-xdist , pytestCheckHook , pythonOlder , rich , reportlab , setuptools , setuptools-scm , substituteAll , tesseract , tqdm , typing-extensions , unpaper , installShellFiles }: buildPythonPackage rec { pname = "ocrmypdf"; version = "16.0.4"; disabled = pythonOlder "3.10"; pyproject = true; src = fetchFromGitHub { owner = "ocrmypdf"; repo = "OCRmyPDF"; rev = "v${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 postFetch = '' rm "$out/.git_archival.txt" ''; hash = "sha256-1Bg1R8c5VtJsd8NHd+WWdJRA39Jjgv9JUMcijZm942o="; }; patches = [ (substituteAll { src = ./paths.patch; gs = lib.getExe ghostscript; jbig2 = lib.getExe jbig2enc; pngquant = lib.getExe pngquant; tesseract = lib.getExe tesseract; unpaper = lib.getExe unpaper; }) ]; nativeBuildInputs = [ setuptools setuptools-scm installShellFiles ]; propagatedBuildInputs = [ deprecation img2pdf packaging pdfminer-six pikepdf pillow pluggy reportlab rich ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; nativeCheckInputs = [ hypothesis pytest-xdist pytestCheckHook ]; pythonImportsCheck = [ "ocrmypdf" ]; postInstall = '' installShellCompletion --cmd ocrmypdf \ --bash misc/completion/ocrmypdf.bash \ --fish misc/completion/ocrmypdf.fish ''; meta = with lib; { homepage = "https://github.com/ocrmypdf/OCRmyPDF"; description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched"; license = with licenses; [ mpl20 mit ]; maintainers = with maintainers; [ kiwi dotlambda ]; changelog = "https://github.com/ocrmypdf/OCRmyPDF/blob/${src.rev}/docs/release_notes.rst"; mainProgram = "ocrmypdf"; }; }