archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-connexion / trunk / PKGBUILD
blob97d4a0a101792c47e67a8bbbef93fc07dfb3dc19
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=connexion
4 pkgname=python-$_pkgname
5 pkgver=2.9.0
6 pkgrel=2
7 pkgdesc='Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support'
8 arch=('any')
9 url='https://github.com/zalando/connexion'
10 license=('Apache')
11 depends=('python-clickclick' 'python-jsonschema' 'python-pyaml' 'python-requests'
12          'python-inflection' 'python-openapi-spec-validator' 'python-flask')
13 optdepends=('python-aiohttp: AIOHTTP backend'
14             'python-ujson: Faster JSON parsing'
15             'python-swagger-ui-bundle: Swagger UI (web UI for the API) support')
16 makedepends=('python-setuptools' 'flake8')
17 #checkdepends=('python-pytest-runner')
18 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
19 sha512sums=('34cb65b21493f3b5b24459c4bccf164e68d9f22644c30b6cdc135c6dbe9f6bb058e26a9f2ec2e314f76e157f2399f4e4e775b54f3757cb812546baa95f14555b')
21 build() {
22   cd $_pkgname-$pkgver
24   python setup.py build
27 check() {
28   cd $_pkgname-$pkgver
30 #  python setup.py test
33 package() {
34   cd $_pkgname-$pkgver
36   python setup.py install --root="$pkgdir" --optimize=1 --skip-build