python3-packaging: break build cycle

This commit is contained in:
Andrew J. Hesford 2022-12-12 13:51:43 -05:00
parent 120dbc7fc6
commit 1ceec9826f
1 changed files with 11 additions and 3 deletions

View File

@ -2,8 +2,10 @@
pkgname=python3-packaging
version=22.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-flit_core"
# 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-parsing"
checkdepends="python3-pytest"
short_desc="Core utilities for Python packages (Python3)"
@ -14,6 +16,12 @@ distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
checksum=2198ec20bd4c017b8f9717e00f0c8714076fc2fd93816750ab48e2c41de2cfd3
make_check=no # provides no tests
post_install() {
do_build() {
python3 -m flit_core.wheel
}
do_install() {
python3 -m installer --destdir "${DESTDIR}" \
"dist/packaging-${version}-py3-none-any.whl"
vlicense LICENSE
}