# Maintainer: psykose pkgname=py3-pyproject-api pkgver=1.5.0 pkgrel=0 pkgdesc="Python API to interact with the python pyproject.toml based projects" url="https://github.com/tox-dev/pyproject-api" arch="noarch" license="MIT" depends="python3 py3-packaging" makedepends=" py3-gpep517 py3-hatch-vcs py3-hatchling " checkdepends=" py3-pytest py3-pytest-cov py3-pytest-mock py3-virtualenv py3-wheel " source="$pkgname-$pkgver.tar.gz::https://github.com/tox-dev/pyproject-api/archive/refs/tags/$pkgver.tar.gz no-python2.patch " builddir="$srcdir/pyproject-api-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer dist/*.whl testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 7a68df007e52c685f512fca26d371d1790f2fb9ced381025fe27462088cd4f1488b7edf4de94f6c1df989c4430336789b94d0b3bd634a2f6ec52f14f292b4474 py3-pyproject-api-1.5.0.tar.gz f299ab1f28ca75ce5cc58f350d7fb88ad593040de2d9f018e49bd2f4c48e5a9f9b563b39312f44b7b682e898ef21408178ef38db03373c3e30fb2697ac874202 no-python2.patch "