[buildout]
extends =
  ../git/buildout.cfg
  ../gzip/buildout.cfg
  ../scipy/buildout.cfg
  ../lxml-python/buildout.cfg
  ../matplotlib/buildout.cfg
  ../numpy/buildout.cfg
  ../patch/buildout.cfg
  ../pillow/buildout.cfg
  ../numpy/buildout.cfg

parts = ocropy

[ocropy-eng-traineddata]
recipe = hexagonit.recipe.download
filename = en-default.pyrnn.gz
md5sum = cedd140c7d7650e910f0550ad0f04727
download-only = true
url = https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz

[ocropy-env]
OCROPY_MODEL_PATH = ${ocropy-eng-traineddata:location}/${ocropy-eng-traineddata:filename}
HOME = ${ocropy:egg}

[ocropy]
recipe = zc.recipe.egg:custom
egg = ocropy
setup-eggs =
  ${numpy:egg}
  ${scipy:egg}
  ${matplotlib:egg}
  ${pillow-python:egg}
patches =
  ${:_profile_base_location_}/ocropy.patch#dd7a02e1e63ed9df68e3a539b3e919eb
patch-options = -p1
patch-binary = ${patch:location}/bin/patch
environment = ocropy-env
find-links = https://github.com/tmbdev/ocropy/tarball/4efbddca22bb2f0c639af0694e7a1386f2f097b5/ocropy-1.0.tar.gz
md5sum = 240b8866dd7248816e01af469a328c09
