aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-drf-yasg/APKBUILD
blob: a7dda90dff21318c9c6b3d06eb0cd98d6c6e1a54 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-drf-yasg
pkgver=1.12.1
pkgrel=2
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"