# Maintainer: Noel Kuntze pkgname=py3-openapi-core pkgdesc="Client-side and server-side support for the OpenAPI Specification v3" pkgver=0.19.1 pkgrel=0 arch="noarch" url="https://github.com/p1c2u/openapi-core" license="BSD-3-Clause" depends="python3 py3-asgiref py3-isodate py3-jsonschema py3-jsonschema-path py3-more-itertools py3-openapi-schema-validator py3-openapi-spec-validator py3-parse py3-werkzeug " makedepends=" py3-gpep517 py3-setuptools py3-wheel py3-poetry-core " checkdepends=" py3-pytest py3-pytest-aiohttp py3-pytest-asyncio py3-aiohttp py3-aioitertools py3-django py3-django-rest-framework py3-falcon py3-fastapi py3-flask py3-httpx py3-multidict py3-requests py3-responses py3-starlette " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/python-openapi/openapi-core/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir"/openapi-core-$pkgver prepare() { default_prepare sed -i 's/--cov\S*//' pyproject.toml } build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --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=" b345cb17038f0105fb8e062e85f18904147c52c407c37368e9a0368633819f765a7c83b3f96ff22de9e2ded7386ad031609abd599321b2afc7d7ecb1d86544d6 py3-openapi-core-0.19.1.tar.gz "