mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #192259 from mweinelt/tesserocr
This commit is contained in:
commit
fb44dae1f4
@ -1,14 +1,18 @@
|
|||||||
{
|
{ buildPythonPackage
|
||||||
buildPythonPackage,
|
, fetchPypi
|
||||||
fetchPypi,
|
, lib
|
||||||
lib,
|
|
||||||
# build dependencies
|
# build dependencies
|
||||||
cython,
|
, cython
|
||||||
leptonica,
|
, leptonica
|
||||||
pkg-config,
|
, pkg-config
|
||||||
tesseract,
|
, tesseract
|
||||||
# extra python packages
|
|
||||||
pillow
|
# propagates
|
||||||
|
, pillow
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, unittestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -20,11 +24,30 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1bmj76gi8401lcqdaaznfmz9yf11myy1bzivqwwq08z3dwzxswck";
|
sha256 = "1bmj76gi8401lcqdaaznfmz9yf11myy1bzivqwwq08z3dwzxswck";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ leptonica tesseract ];
|
cython
|
||||||
propagatedBuildInputs = [ pillow ];
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
leptonica
|
||||||
|
tesseract
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pillow
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"tesserocr"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
unittestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/sirfz/tesserocr/releases/tag/v${version}";
|
||||||
description = "A simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)";
|
description = "A simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)";
|
||||||
homepage = "https://github.com/sirfz/tesserocr";
|
homepage = "https://github.com/sirfz/tesserocr";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user