Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3ef4db43d52b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c107ff9e2dc6
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 14, 2019

  1. ocrmypdf: 8.2.3 -> 9.0.3

    Version bump and bug fix
    Fixes runtime dependencies ( #67497 ) and the version bump fixed other issues
    
    (cherry picked from commit 82c4218)
    Kiwi authored and ivan committed Oct 14, 2019
    Copy the full SHA
    57a1576 View commit details

Commits on Oct 18, 2019

  1. Merge pull request #71149 from ivan/ocrmypdf-backport

    [19.09] ocrmypdf: 8.2.3 -> 9.0.3
    worldofpeace authored Oct 18, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c107ff9 View commit details
Showing with 7 additions and 4 deletions.
  1. +7 −4 pkgs/tools/text/ocrmypdf/default.nix
11 changes: 7 additions & 4 deletions pkgs/tools/text/ocrmypdf/default.nix
Original file line number Diff line number Diff line change
@@ -28,14 +28,14 @@ let

in buildPythonApplication rec {
pname = "ocrmypdf";
version = "8.2.3";
version = "9.0.3";
disabled = ! python3Packages.isPy3k;

src = fetchFromGitHub {
owner = "jbarlow83";
repo = "OCRmyPDF";
rev = "v${version}";
sha256 = "1ldlyhxkav34y9d7g2kx3d4p26c2b82vnwi0ywnfynb16sav36d5";
sha256 = "1qnjdcbwkxxqfahylzl0wj1gk51yi9m8akd4d1rrq37vg2vwdkjy";
};

nativeBuildInputs = with python3Packages; [
@@ -51,12 +51,14 @@ in buildPythonApplication rec {
img2pdf
pdfminer
pikepdf
pillow
reportlab
ruffus
setuptools
tqdm
];

checkInputs = with python3Packages; [
hocr-tools
pypdf2
pytest
pytest-helpers-namespace
@@ -67,7 +69,6 @@ in buildPythonApplication rec {
setuptools
] ++ runtimeDeps;


postPatch = ''
substituteInPlace src/ocrmypdf/leptonica.py \
--replace "ffi.dlopen(find_library('lept'))" \
@@ -93,6 +94,8 @@ in buildPythonApplication rec {
and not test_old_unpaper'
'';

makeWrapperArgs = [ "--prefix PATH : ${stdenv.lib.makeBinPath [ ghostscript jbig2enc pngquant qpdf tesseract4 unpaper ]}" ];

meta = with stdenv.lib; {
homepage = "https://github.com/jbarlow83/OCRmyPDF";
description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched";