[libmaxminddb]
recipe = slapos.recipe.cmmi
location = ${buildout:parts-directory}/${:_buildout_section_name_}
url = https://github.com/maxmind/libmaxminddb/releases/download/${:version}/libmaxminddb-${:version}.tar.gz
version = 1.3.2
md5sum = 67a861965b30d045bf29a2126bcc05ed

[maxminddb-python]
recipe = zc.recipe.egg:custom
egg = maxminddb
include-dirs =
  ${libmaxminddb:location}/include
library-dirs =
  ${libmaxminddb:location}/lib
rpath = ${:library-dirs}

[geolite2-country]
recipe = slapos.recipe.build:download-unpacked
url = http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz#${:md5sum}
md5sum = a06d162867715573a919f10f6bf36e48
strip-top-level-dir = true
