# Template file for 'python3-packaging-bootstrap' pkgname=python3-packaging-bootstrap version=25.0 revision=1 # This package is required by python3-build, used by the python3-pep517 style; # using that style here would create a cycle build_style=python3-module hostmakedepends="python3-flit_core-bootstrap python3-installer-bootstrap" depends="python3" short_desc="Core utilities for Python 3 packages (for xbps-src use)" maintainer="Andrew J. Hesford " license="Apache-2.0, BSD-2-Clause" homepage="https://github.com/pypa/packaging" distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz" checksum=d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f make_check=no # provides no tests, bootstrap repository=bootstrap nopyprovides=yes noverifypydeps=yes do_build() { local pypath="/${py3_sitelib}-bootstrap" if [ -n "${PYTHONPATH}" ]; then pypath="${pypath}:${PYTHONPATH}" fi PYTHONPATH="${pypath}" python3 -m flit_core.wheel } do_install() { local pypath="/${py3_sitelib}-bootstrap" if [ -n "${PYTHONPATH}" ]; then pypath="${pypath}:${PYTHONPATH}" fi PYTHONPATH="${pypath}" python3 -m installer --destdir "${DESTDIR}" \ "dist/packaging-${version}-py3-none-any.whl" mv "${DESTDIR}/${py3_sitelib}" "${DESTDIR}/${py3_sitelib}-bootstrap" vlicense LICENSE }