# Template file for 'python3-pyproject-hooks' pkgname=python3-pyproject-hooks version=1.2.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="https://github.com/pypa/pyproject-hooks/archive/v${version}.tar.gz" checksum=d993cda99f6c41c2679a0cd5528fc15608cc114df26553deb41db62185c11206 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 }