aports/testing/py3-openapi-codec/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

41 lines
1.4 KiB
Text

# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-openapi-codec
_pkgname=python-openapi-codec
pkgver=1.3.2
pkgrel=9
pkgdesc="OpenAPI codec for Core API"
url="https://github.com/core-api/python-openapi-codec"
arch="noarch"
license="BSD-2-Clause"
depends="py3-core-api"
makedepends="py3-setuptools"
checkdepends="py3-coverage py3-pytest py3-jinja2 py3-pycodestyle py3-pyflakes"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/$_pkgname/archive/$pkgver.tar.gz
disable-flake8-tests-that-requires-pyflake15.patch
assertEquals.patch
"
replaces="py-openapi-codec" # Backwards compatibility
provides="py-openapi-codec=$pkgver-r$pkgrel" # Backwards compatibility
builddir="$srcdir"/$_pkgname-$pkgver
build() {
python3 setup.py --quiet build
}
package() {
python3 setup.py --quiet install --skip-build --root="$pkgdir"
}
check() {
python3 runtests
}
sha512sums="
566c82643bd6ad3e9bc444ceb9a518cb8bdddc9239f43e8bcce69d3b425a9d62b5d56d56cbe685fb0d054c1c3e33a19b010d5f8b4469d1c98fd092742b17bb22 py3-openapi-codec-1.3.2.tar.gz
6807f1d48f17bcec58642037e262246b818fb0e5d522606c46fbe343fd2c7d5388a40d29e6d361ad34d92611a1eb24e29cc78377472bd608503a71c8e8017363 disable-flake8-tests-that-requires-pyflake15.patch
187935b5c43b30089da2c467c5e0cf17a717f02ec78b9cea05ac5b0369086233ed6dc125d3eb4bf4011b9baa069e276a9bc77e965712f72e7884e995cdc00c8e assertEquals.patch
"