18 buildPythonPackage rec {
23 inherit pname version;
24 sha256 = "sha256-RVJfocGjVvnRVanekbN1nKRECEr9hTVE9aKaqFizA5A=";
27 # https://github.com/sirfz/tesserocr/issues/314
29 sed -i '/allheaders.h/a\ pass\n\ncdef extern from "leptonica/pix_internal.h" nogil:' tesseract.pxd
42 propagatedBuildInputs = [
46 pythonImportsCheck = [
55 changelog = "https://github.com/sirfz/tesserocr/releases/tag/v${version}";
56 description = "A simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)";
57 homepage = "https://github.com/sirfz/tesserocr";
58 license = licenses.mit;
59 maintainers = with maintainers; [ mtrsk ];
60 platforms = platforms.linux;