diff --git a/srcpkgs/python3-packaging/template b/srcpkgs/python3-packaging/template index e61e826feca..7f65d28800c 100644 --- a/srcpkgs/python3-packaging/template +++ b/srcpkgs/python3-packaging/template @@ -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 }