Celeste e636b3a636 community/py3-openapi-spec-validator: disable on loongarch64 again
https://build.alpinelinux.org/buildlogs/build-edge-loongarch64/community/py3-openapi-spec-validator/py3-openapi-spec-validator-0.7.1-r0.log

=========================== short test summary info ============================
FAILED tests/integration/test_shortcuts.py::TestRemoteValidatev2SpecUrl::test_valid[f25a1d44cff9669703257173e562376cc5bd0ec6/examples/v2.0/yaml/api-with-examples.yaml] - TimeoutError: The read operation timed out
FAILED tests/integration/test_shortcuts.py::TestRemoteValidatev2SpecUrl::test_valid[f25a1d44cff9669703257173e562376cc5bd0ec6/examples/v2.0/yaml/petstore-expanded.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
FAILED tests/integration/test_shortcuts.py::TestRemoteValidatev30SpecUrl::test_valid[f75f8486a1aae1a7ceef92fbc63692cb2556c0cd/examples/v3.0/api-with-examples.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
FAILED tests/integration/validation/test_validators.py::TestRemoteOpenAPIv30Validator::test_valid[f75f8486a1aae1a7ceef92fbc63692cb2556c0cd/examples/v3.0/petstore.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
FAILED tests/integration/validation/test_validators.py::TestRemoteOpenAPIv31Validator::test_valid[license_identifier.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
FAILED tests/integration/validation/test_validators.py::TestRemoteOpenAPIv31Validator::test_valid[minimal_hooks.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
FAILED tests/integration/validation/test_validators.py::TestRemoteOpenAPIv31Validator::test_valid[servers.yaml] - urllib.error.URLError: <urlopen error [Errno 101] Network unreachable>
=================== 7 failed, 76 passed in 611.71s (0:10:11) ===================
2024-07-14 03:39:45 +00:00

53 lines
1.3 KiB
Plaintext

# 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.1
pkgrel=0
pkgdesc="OpenAPI 2.0 (aka Swagger) and OpenAPI 3 spec validator"
url="https://github.com/python-openapi/openapi-spec-validator"
# loongarch64: tests fail
arch="noarch !loongarch64"
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="
2a57ae1beb5f38f278839749f80cd92881bb57aa035573e604ee5fad5db6868150a9b4ebd1c00c20cc0fa00672619f5d99295de4df3173d25a841fe25c374c9d py3-openapi-spec-validator-0.7.1.tar.gz
"