aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-drf-yasg/APKBUILD
blob: 583bd8a45cc13998c6f355188c5e48edf73b53b3 (plain) (blame)
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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-drf-yasg
pkgver=1.17.1
pkgrel=0
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"
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="db978782b406faa0c5ad515706b71d4d38e719331e3e12feffa5ceb422b4bddf79d470cf956c518f7621131054528e662f57dbdbab63bf488af3ffa3ab0df7c5  py3-drf-yasg-1.17.1.tar.gz"