mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # 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.2
 | |
| pkgrel=0
 | |
| # loongarch64: blocked by py3-jsonschema
 | |
| arch="noarch !loongarch64"
 | |
| 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="
 | |
| 5c83266709832650d2a18af2b7686d4e239e6b4e5ec830ff41233b48e8ff43b474136e49113be38488eaed49af174bf1339ce07fc03a5a07b1b67eae9942223a  py3-openapi-core-0.19.2.tar.gz
 | |
| "
 |