mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-openapi-schema-validator
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=openapi-schema-validator
|
|
pkgver=0.6.2
|
|
pkgrel=0
|
|
pkgdesc="OpenApi schema validation for OpenApi versions v2, v3.0.x and v3.1.x"
|
|
url="OpenAPI schema validation for Python"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-jsonschema
|
|
py3-jsonschema-specifications
|
|
py3-rfc3339-validator
|
|
"
|
|
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-schema-validator/archive/refs/tags/$pkgver.tar.gz
|
|
dfb83c2_jsonschema-4.20-prefixitems-test-fix.patch
|
|
"
|
|
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="
|
|
8a1f25a2b56ec4bf77080cae3dee5093eeece1b06b94998ba4d17fb4d08a1fda89aeb57c7c48917ee800f6ba9d00cceb7826c8030d1429222ec18b282a90da16 py3-openapi-schema-validator-0.6.2.tar.gz
|
|
d2468fd02cccf826be1a6c6197420a1a42bdb283fb40e15cb6ccf4df24a5f58d51d9c3519d49e6895390bbc1d3a604a6b9d1db9d68748d8d7239782e7a023fbe dfb83c2_jsonschema-4.20-prefixitems-test-fix.patch
|
|
"
|