1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/py3-openapi-spec-validator/APKBUILD

51 lines
1.3 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-openapi-spec-validator
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=openapi-spec-validator
pkgver=0.7.2
pkgrel=0
pkgdesc="OpenAPI 2.0 (aka Swagger) and OpenAPI 3 spec validator"
url="https://github.com/python-openapi/openapi-spec-validator"
arch="noarch"
license="Apache-2.0"
depends="
py3-jsonschema
py3-jsonschema-path
py3-openapi-schema-validator
py3-lazy-object-proxy
"
checkdepends="
py3-pytest
py3-pytest-cov
"
makedepends="
poetry
py3-setuptools
py3-gpep517
py3-wheel
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-openapi/openapi-spec-validator/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$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
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
8642c2d98baebe122e1ea56b960f73e6cc5ff2dd3c5f6d82362ef1846b4a1a79b652668d7b42277fc7062a0b84556f38dd0e7c53e5e791a88d11b6dd4711c898 py3-openapi-spec-validator-0.7.2.tar.gz
"