# Template file for 'python3-pyproject-hooks' pkgname=python3-pyproject-hooks version=1.0.0 revision=2 # 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 python3-installer" depends="python3" checkdepends="python3-pytest-xdist python3-testpath python3-setuptools python3-flit_core python3-pip" short_desc="Low-level library for calling Python build backends" maintainer="Andrew J. Hesford " license="MIT" homepage="https://pyproject-hooks.readthedocs.io/" distfiles="${PYPI_SITE}/p/pyproject_hooks/pyproject_hooks-${version}.tar.gz" checksum=f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 do_build() { python3 -m flit_core.wheel } do_check() { rm pytest.ini PYTHONPATH="$(cd src && pwd)" pytest3 -n $XBPS_MAKEJOBS tests } do_install() { python3 -m installer --destdir "${DESTDIR}" \ "dist/pyproject_hooks-${version}-py3-none-any.whl" vlicense LICENSE }