void-packages/srcpkgs/python3-pyproject-hooks/template

33 lines
982 B
Bash

# 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
}