33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
# Template file for 'python3-pyproject-hooks'
|
|
pkgname=python3-pyproject-hooks
|
|
version=1.1.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="https://github.com/pypa/pyproject-hooks/archive/v${version}.tar.gz"
|
|
checksum=1cbbabcd93ea1ac50cca7f23e5b640904684ae6c85003c6f7cf02b598c33f28f
|
|
|
|
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
|
|
}
|