blob: 016b87cb44d44ad1ee368a9a2f7cfe56f51da6d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Dennis Herbrich <dennis.herbrich@veloxis.de>
pkgname=openapi-python-client
pkgver=0.28.0
pkgrel=1
pkgdesc='Generate modern Python clients from OpenAPI 3.0 and 3.1 documents'
arch=('any')
url='https://github.com/openapi-generators/openapi-python-client'
license=('MIT')
depends=(
'python>=3.10'
'python-jinja>=3.0.0'
'python-typer>=0.16'
# 'python-shellingham>=1.3.2' # NOTE: declared, but seemingly unused
'python-pydantic>=2.1.1'
'python-attrs>=22.2.0' # see https://github.com/openapi-generators/openapi-python-client/issues/1084
'python-dateutil>=2.8.1'
'python-httpcore>=1.0.0' # implicit by python-httpx, explicitly used in source (once)
'python-httpx>=0.23.0'
'python-ruamel-yaml>=0.18.6'
'python-typing_extensions>=4.8.0'
)
makedepends=(
'python-pdm>=2.26.3'
'python-hishel>=1.0.0'
'python-hatchling'
'python-build'
'python-installer'
'python-wheel'
)
optdepends=(
'python-pdm>=2.12.0: use generated PDM metadata'
'python-poetry: use generated Poetry metadata'
'python-setuptools: use generated setuptools metadata'
'ruff>=0.2,<=0.13: linter check of generated code'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/openapi-generators/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ea911beb3143d0533b0e309fd7575dcefcfdd01d5d1f7c860433e151c43f8085')
build() {
cd "${pkgname}-${pkgver}"
pdm build --no-sdist
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
check() {
cd "${pkgname}-${pkgver}"
pdm install
pdm test
}
|