nixpkgs/pkgs/top-level
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
..
aliases.nix surf: 0.7 -> 2.0 2017-04-02 20:11:44 +02:00
all-packages.nix leptonica: 1.72 -> 1.74.1 2017-04-11 03:21:29 +02:00
default.nix top-level: Allow nixpkgs to take localSystem directly 2017-02-08 22:06:57 -05:00
dotnet-packages.nix dafny: fix meta attribute 2017-02-07 11:35:10 +01:00
emacs-packages.nix melpa-packages: init w3m at 20170203.647 2017-02-10 13:11:45 -06:00
emscripten-packages.nix libxml2: supportPython -> pythonSupport 2016-11-08 17:10:05 +01:00
haskell-packages.nix Disable integer-simple variant of GHC 7.6.3 since it does not compile. 2017-03-29 20:30:27 +02:00
impure.nix Allow directories with a default.nix to be imported as an overlay. Closes #23016. 2017-02-25 02:32:04 +01:00
java-packages.nix Complete hello world with test 2016-11-15 14:18:19 -05:00
lua-packages.nix luaPackages.vicious 2.1.3 -> 2.2.0 2017-03-30 20:27:57 +02:00
make-tarball.nix make-tarball.nix: Fix running as root 2016-12-15 13:08:21 +01:00
metrics.nix nixpkgs-metrics: Suppress build products 2016-03-24 18:06:46 +01:00
node-packages-generated.nix nodePackages.bower2nix: 3.0.1 -> 3.1.1 2016-09-15 01:28:37 +01:00
node-packages.json yarn: init at 0.17.8 (#20635) 2016-12-14 15:46:45 +01:00
node-packages.nix bower2nix: 2.1.0 -> 3.0.1 2016-03-28 08:23:06 +01:00
ocaml-packages.nix bap: init at 1.2.0 2017-04-04 13:11:01 -04:00
perl-packages.nix Merge pull request #24008 from phile314/slimserver 2017-04-08 17:43:41 +02:00
php-packages.nix phpPackages.composer: 1.3.2 -> 1.4.1 2017-03-24 22:16:10 +01:00
platforms.nix top-level/platforms.nix: Reformat and clean up whitespace 2017-04-10 15:39:47 -04:00
pure-packages.nix purePackages.octave: Use octaveHg 2017-04-09 21:54:39 +10:00
python-packages.nix pyocr: Add patch to support Tesseract 3.05.00 2017-04-11 03:21:39 +02:00
release-cross.nix top-level: no more need to expose splicedPackages 2017-01-25 09:24:55 -05:00
release-lib.nix nixpkgs: add aarch64-linux to release-lib 2017-03-08 17:13:34 +01:00
release-python.nix Replace ./../* with ../* in Nix expressions (#16414) 2016-06-22 10:39:50 +02:00
release-small.nix release-small: use unar instead of unrar 2017-04-03 09:09:37 +02:00
release.nix Add aggregate job for a forthcoming nixpkgs-darwin-unstable channel 2017-04-10 12:35:32 -04:00
rust-packages.nix rustRegistry: 2017-04-03 -> 2017-04-08 2017-04-08 17:43:51 +02:00
splice.nix top-level: no more need to expose splicedPackages 2017-01-25 09:24:55 -05:00
stage.nix top-level: Only splice as needed for performance 2017-01-24 11:37:56 -05:00