# Contributor: Leonardo Arena # Maintainer: pkgname=py3-drf-yasg pkgver=1.12.1 pkgrel=3 pkgdesc="Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code" options="!check" # Missing dependencies url="https://pypi.org/project/drf-yasg/" arch="noarch" license="BSD-3-Clause" depends="py3-django py3-coreschema py3-ruamel.yaml py3-inflection py3-six py3-uritemplate py3-coreapi" makedepends="py3-setuptools py3-setuptools_scm py3-pbr" # Requires unpackaged datadiff pytest-pythonpath pytest-django checkdepends="py3-pytest py3-pytest-cov py3-pytest-xdist" options="!check" # no test suite source="$pkgname-$pkgver.tar.gz::https://github.com/axnsan12/drf-yasg/archive/$pkgver.tar.gz" builddir="$srcdir"/drf-yasg-$pkgver replaces="py-drf-yasg" # Backwards compatibility provides="py-drf-yasg=$pkgver-r$pkgrel" # Backwards compatibility build() { git init # Workaround python3 setup.py build } package() { python3 setup.py --quiet install --prefix=/usr --root="$pkgdir" } sha512sums="096bda87ab8fae3ed2ccd1449ded37b06ebd368154fef834467ee21b7c3612e70712e4c6f1a970ff1fee89e8ae9afc46215437e1095778cced88de1b9062319d py3-drf-yasg-1.12.1.tar.gz"