New package: python3-pyproject-hooks-0.13.0

This commit is contained in:
Andrew J. Hesford 2022-11-08 10:33:01 -05:00 committed by Andrew J. Hesford
parent a28ec67bb3
commit eafd583488
1 changed files with 32 additions and 0 deletions

View File

@ -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 <ajh@sideband.org>"
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
}