# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=py3-pyproject-hooks pkgver=1.0.0 pkgrel=1 pkgdesc="Low-level library for calling build-backends in 'pyproject.toml'-based project" url="https://pyproject-hooks.readthedocs.io/" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-installer py3-flit-core" checkdepends="py3-pytest py3-setuptools py3-testpath" subpackages="$pkgname-pyc" source="https://github.com/pypa/pyproject-hooks/archive/refs/tags/v$pkgver/py3-pyproject-hooks-$pkgver.tar.gz" builddir="$srcdir/pyproject-hooks-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 -m installer .dist/pyproject_hooks*.whl test-env/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/pyproject_hooks*.whl } sha512sums=" fca9b69859d7e3949b158c2879ba7ebc7305f1edaacdd84b71a92565010176d1194be03a21fd6b9aa65d175cfd8243ba3a50aab617fb56ceac6b263da6613e17 py3-pyproject-hooks-1.0.0.tar.gz "