# packaging 26.2 — módulo Python puro de versionado (PEP 440). Mesa lo usa en su chequeo de versión
# de mako: `from packaging.version import Version` (el fallback `distutils.version` NO existe en
# Python 3.12 ⇒ sin packaging el chequeo falla y Mesa reporta engañosamente «mako required»).
# Mismo patrón que mako/markupsafe/meson: se copia el paquete a site-packages, sin pip/wheel.
name    = "packaging"
version = "26.2"
license = "Apache-2.0 OR BSD-2-Clause"

[source]
tarball = "https://files.pythonhosted.org/packages/d7/f1/e7a6dd94a8d4a5626c03e4e99c87f241ba9e350cd9e6d75123f992427270/packaging-26.2.tar.gz"
sha256  = "ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661"

[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 src/packaging "$SP/packaging"
'''

[deps]
runtime = ["python3"]
