mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
python3Packages.tesserocr: init at 2.5.0
This commit is contained in:
parent
e4f0522272
commit
cc449015e9
34
pkgs/development/python-modules/tesserocr/default.nix
Normal file
34
pkgs/development/python-modules/tesserocr/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
lib,
|
||||
# build dependencies
|
||||
cython,
|
||||
leptonica,
|
||||
pkg-config,
|
||||
tesseract,
|
||||
# extra python packages
|
||||
pillow
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tesserocr";
|
||||
version = "2.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0nj33mwvppacy6p5mqk9a4x26hx9ailshgad84ks60wyms6rgjiv";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython pkg-config ];
|
||||
buildInputs = [ leptonica tesseract ];
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)";
|
||||
homepage = "https://github.com/sirfz/tesserocr";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mtrsk ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -1325,6 +1325,8 @@ in {
|
||||
|
||||
tableaudocumentapi = callPackage ../development/python-modules/tableaudocumentapi { };
|
||||
|
||||
tesserocr = callPackage ../development/python-modules/tesserocr { };
|
||||
|
||||
trueskill = callPackage ../development/python-modules/trueskill { };
|
||||
|
||||
trustme = callPackage ../development/python-modules/trustme {};
|
||||
|
Loading…
Reference in New Issue
Block a user