# Mako 1.3.12 — motor de plantillas; Mesa lo usa para codegen (dispatch GL/GLES, formatos).
# Python PURO (igual que `meson`): se copia el paquete `mako/` a site-packages, sin pip ni wheel.
# `mako/filters.py` importa `markupsafe` a nivel de módulo ⇒ markupsafe es dep de runtime.
name    = "mako"
version = "1.3.12"

[source]
tarball = "https://files.pythonhosted.org/packages/00/62/791b31e69ae182791ec67f04850f2f062716bbd205483d63a215f3e062d3/mako-1.3.12.tar.gz"
sha256  = "9f778e93289bd410bb35daadeb4fc66d95a746f0b75777b942088b7fd7af550a"

[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"

[build.phases]
compile = "true"
install = '''
set -e
SP=/out/usr/lib/python3.12/site-packages
mkdir -p "$SP"
cp -r mako "$SP/mako"
'''

[deps]
runtime = ["python3", "markupsafe"]
