# Contributor: Leo # Maintainer: pkgname=py3-coreapi _pkgname=python-client pkgver=2.3.3 pkgrel=9 pkgdesc="client library for Core API" url="https://github.com/core-api/python-client" arch="noarch" license="BSD-3-Clause" depends="py3-coreschema py3-requests py3-itypes py3-uritemplate py3-setuptools" makedepends="py3-gpep517" checkdepends="py3-pytest py3-coverage" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-client/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl .testenv/bin/python3 -m pytest } package() { gpep517 install-wheel --destdir "$pkgdir" \ .dist/*.whl } sha512sums=" aeae3ace84c0ce61552236b83db28e47492f5ac17a0e216e1a8eeddaf67270b94127f7a40f8a37cc5051abe097555adfd690a7e6c8801524ca77c916bd451ab8 py3-coreapi-2.3.3.tar.gz "