ayaports/user/py3-django-drf-spectacular/APKBUILD

33 lines
1.2 KiB
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=drf-spectacular
pkgname="py3-django-$_pyname"
pkgver=0.25.1
2023-01-12 18:48:03 +00:00
pkgrel=1
2022-12-27 20:40:33 +00:00
arch="noarch"
pkgdesc="Sane and flexible OpenAPI 3 schema generation for Django REST framework"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-CLAUSE"
depends="py3-django-rest-framework py3-jsonschema py3-uritemplate py3-yaml py3-inflection py3-django-oauth-toolkit py3-jwcrypto"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-django py3-pytest-cov py3-flake8 py3-mypy py3-isort"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
2023-01-12 18:48:03 +00:00
python3 setup.py build
2022-12-27 20:40:33 +00:00
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
2023-01-12 18:48:03 +00:00
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
2022-12-27 20:40:33 +00:00
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
65ca788017ba716bc3637d0b6337a56e0059fdda7768efe20adafa767d32439bf5f0cf25d149acfbbd3808036f6a6980c47b31fa3b6d993ae8ad345e1d136db5 py3-django-drf-spectacular-0.25.1.tar.gz
"