nixpkgs/pkgs/development
aszlig 49cf934642
pyocr: Add patch to support Tesseract 3.05.00
This is from the commit message I've written for the upstream pull
request (jflesch/pyocr#62):

    This is a bit more involved, because Tesseract 3.05.00 comes not
    only with improvements but also with a few quirks we need to deal
    with.

    The first quirk is that the order arguments of the `tesseract'
    command now matters and the list of configurations has to be at the
    end of the command line. So we add a new attribute tesseract_flags
    to the BaseBuilder class that contains a list of all the flags to
    pass to `tesseract', the tesseract_configs attribute however remains
    pretty much the same but now only really contains a list of configs
    instead of being mixed with flag arguments.

    Another quirk has to do with Leptonica >= 1.74 which Tesseract
    3.05.00 now requires. Leptonica has special handling of files that
    reside in /tmp and assumes that it's an internal temporary file of
    Leptonica. In order to deal with it, we now run Tesseract in a
    temporary directory, which contains the input/output files and use
    the relative name of these files because Leptonica only searches for
    path names beginning with /tmp.

    Fortunately the last item we need to address is not really a quirk,
    but an API change. In Tesseract 3.05.00 there is now a new function
    called TessBaseAPIDetectOrientationScript(), which doesn't fill the
    OSResults object anymore but now allows to pass the values we're
    interested in directly by reference. We need to use this new
    function because the old function TessBaseAPIDetectOS() now *always*
    returns false.

I've tested this specifically on NixOS and in conjunction with Paperwork
(the only package that's using pyocr so far) and all the tests of the
dependency chain are now succeeding. However, I didn't do manual tests
of Paperwork though.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-11 03:21:39 +02:00
..
arduino
beam-modules buildRebar3: fix buildPhase & cleanup (#22744) 2017-02-18 14:25:24 +01:00
bower-modules/generic
compilers dtc: 1.4.2 -> 1.4.4 2017-04-09 21:48:25 +03:00
coq-modules coqPackages.interval: 2.2.1 -> 3.1.1 2017-02-11 14:02:19 +01:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules go builder: use removeReferencesTo 2017-03-29 00:35:01 +02:00
guile-modules guile rev-deps: fix build by adding pkgconfig 2017-02-18 08:23:07 +01:00
haskell-modules Merge pull request #24754 from shlevy/haskell-overrideSrc 2017-04-09 17:55:23 +02:00
idris-modules
interpreters octaveHg: add package 2017-04-09 21:54:14 +10:00
java-modules javaPackages: Use artifactId/groupId 2017-02-13 18:40:13 -05:00
libraries leptonica: 1.72 -> 1.74.1 2017-04-11 03:21:29 +02:00
lisp-modules lispPackage.iolib: missed one system 2017-04-10 10:09:22 +02:00
lua-modules
misc
mobile Get rid of all with { inherit... } and just used let inherit... 2017-03-30 03:05:05 -04:00
node-packages Regenerate NPM expressions with node2nix 1.2.0 2017-03-31 20:51:14 +02:00
ocaml-modules bap: init at 1.2.0 2017-04-04 13:11:01 -04:00
perl-modules perlPackages.OpenGL: 0.6703 -> 0.70 2017-03-24 19:15:20 +01:00
pharo Merge pull request #24595 from lukego/pharo-no-pic 2017-04-04 12:01:27 +02:00
pure-modules purePackages.octave: Use octaveHg 2017-04-09 21:54:39 +10:00
python-modules pyocr: Add patch to support Tesseract 3.05.00 2017-04-11 03:21:39 +02:00
qtcreator Remove bbenoist from maintainers 2017-03-23 03:03:04 +01:00
r-modules r-modules: update CRAN package set 2017-03-07 14:56:46 +01:00
ruby-modules bundler: 1.14.4 -> 1.14.6 (#23930) 2017-03-15 20:34:35 +00:00
tools sbt: 0.13.14 -> 0.13.15 2017-04-10 08:44:32 -04:00
web Regenerate NPM expressions with node2nix 1.2.0 2017-03-31 20:51:14 +02:00