My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/tesserocr/default.nix

34 lines
787 B

{
buildPythonPackage,
fetchPypi,
lib,
# build dependencies
cython,
leptonica,
pkg-config,
tesseract,
# extra python packages
pillow
}:
buildPythonPackage rec {
pname = "tesserocr";
version = "2.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "1bmj76gi8401lcqdaaznfmz9yf11myy1bzivqwwq08z3dwzxswck";
};
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;
};
}