mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=py3-drf-yasg
|
|
pkgver=1.21.7
|
|
pkgrel=2
|
|
pkgdesc="Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code"
|
|
url="https://pypi.org/project/drf-yasg/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-django py3-coreschema py3-ruamel.yaml py3-inflection
|
|
py3-uritemplate"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-pbr py3-gpep517"
|
|
# Requires unpackaged datadiff pytest-pythonpath pytest-django
|
|
checkdepends="py3-pytest py3-pytest-cov py3-pytest-xdist"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/axnsan12/drf-yasg/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/drf-yasg-$pkgver
|
|
options="!check" # Missing dependencies
|
|
|
|
replaces="py-drf-yasg" # Backwards compatibility
|
|
provides="py-drf-yasg=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
|
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
sha512sums="
|
|
4db6daea8e5c0b3179c1a0146f65ad16feb82d5bbd4220108f1cf6256d160a65e0a4a6831d88aba6991fa4558bea62c7f1cd911cf51ca1f91a940e4fe5202727 py3-drf-yasg-1.21.7.tar.gz
|
|
"
|