tesseract: 5.3.4 -> 5.5.0 (#353902)
This commit is contained in:
commit
4b8921fde4
@ -1,17 +1,31 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
||||
, curl, leptonica, libarchive, libpng, libtiff, icu, pango, opencl-headers
|
||||
, Accelerate, CoreGraphics, CoreVideo
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
curl,
|
||||
leptonica,
|
||||
libarchive,
|
||||
libpng,
|
||||
libtiff,
|
||||
icu,
|
||||
pango,
|
||||
Accelerate,
|
||||
CoreGraphics,
|
||||
CoreVideo,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tesseract";
|
||||
version = "5.3.4";
|
||||
version = "5.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tesseract-ocr";
|
||||
repo = "tesseract";
|
||||
rev = version;
|
||||
sha256 = "sha256-IKxzDhSM+BPsKyQP3mADAkpRSGHs4OmdFIA+Txt084M=";
|
||||
sha256 = "sha256-qyckAQZs3gR1NBqWgE+COSKXhv3kPF+iHVQrt6OPi8s=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
@ -21,7 +35,8 @@ stdenv.mkDerivation rec {
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
buildInputs =
|
||||
[
|
||||
curl
|
||||
leptonica
|
||||
libarchive
|
||||
@ -29,18 +44,19 @@ stdenv.mkDerivation rec {
|
||||
libtiff
|
||||
icu
|
||||
pango
|
||||
opencl-headers
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
Accelerate
|
||||
CoreGraphics
|
||||
CoreVideo
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
meta = {
|
||||
description = "OCR engine";
|
||||
homepage = "https://github.com/tesseract-ocr/tesseract";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ ];
|
||||
maintainers = with lib.maintainers; [ patrickdag ];
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "tesseract";
|
||||
};
|
||||
|
@ -37,6 +37,11 @@ buildPythonPackage rec {
|
||||
packaging
|
||||
pillow
|
||||
];
|
||||
disabledTests = [
|
||||
# https://github.com/madmaze/pytesseract/pull/559
|
||||
"incorrect_tessdata_dir"
|
||||
"invalid_tessdata_dir"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user