From c4eb6b0c64fe998abf97996388420f52d8788957 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 8 Nov 2022 10:54:30 -0500 Subject: [PATCH] New package: python3-build-0.9.0 --- srcpkgs/python3-build/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/python3-build/template diff --git a/srcpkgs/python3-build/template b/srcpkgs/python3-build/template new file mode 100644 index 00000000000..159b9e1ce53 --- /dev/null +++ b/srcpkgs/python3-build/template @@ -0,0 +1,34 @@ +# Template file for 'python3-build' +pkgname=python3-build +version=0.9.0 +revision=1 +# This package is used by the python3-pep517 build style; using that style here +# would create a build cycle +build_style=python3-module +_depends="python3-packaging python3-pyproject-hooks" +hostmakedepends="python3-setuptools python3-wheel python3-installer $_depends" +depends="$_depends" +short_desc="Simple, correct PEP 517 build frontend" +maintainer="Andrew J. Hesford " +license="MIT" +homepage="https://pypa-build.readthedocs.io/" +changelog="https://raw.githubusercontent.com/pypa/build/main/CHANGELOG.rst" +distfiles="${PYPI_SITE}/b/build/build-${version}.tar.gz" +checksum=1a07724e891cbd898923145eb7752ee7653674c511378eb9c7691aab1612bc3c +# PyPI package provides no tests +make_check=no + +do_build() { + local pypath="./src" + if [ -n "${PYTHONPATH}" ]; then + pypath="${pypath}:${PYTHONPATH}" + fi + + PYTHONPATH="${pypath}" python3 -m build --no-isolation --wheel . +} + +do_install() { + python3 -m installer --destdir "${DESTDIR}" \ + "dist/build-${version}-py3-none-any.whl" + vlicense LICENSE +}