mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
73 lines
1.5 KiB
Text
73 lines
1.5 KiB
Text
# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
|
|
pkgname=py3-openapi-core
|
|
pkgdesc="Client-side and server-side support for the OpenAPI Specification v3"
|
|
pkgver=0.19.4
|
|
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="
|
|
7b6ee3e9ebefb0cbaeb719f03aef4612758f9189d7ebe21846710cd4f36f376cf731dfd4b8565829c8cbfda65177cc8d83825ca378114a85807df4b31bddc673 py3-openapi-core-0.19.4.tar.gz
|
|
"
|