diff --git a/srcpkgs/python3-pyproject-hooks/template b/srcpkgs/python3-pyproject-hooks/template new file mode 100644 index 00000000000..d29ed4dfdf2 --- /dev/null +++ b/srcpkgs/python3-pyproject-hooks/template @@ -0,0 +1,32 @@ +# Template file for 'python3-pyproject-hooks' +pkgname=python3-pyproject-hooks +version=0.13.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 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/pep517/pep517-${version}.tar.gz" +checksum=ae69927c5c172be1add9203726d4b84cf3ebad1edcd5f71fcdc746e66e829f59 + +do_build() { + python3 -m flit_core.wheel +} + +do_check() { + rm pytest.ini + python3 -m pytest -n $XBPS_MAKEJOBS +} + +do_install() { + python3 -m installer --destdir "${DESTDIR}" \ + "dist/pep517-${version}-py3-none-any.whl" + vlicense LICENSE +}