mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-07 18:41:55 +01:00
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-drf-writable-nested
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=drf-writable-nested
|
|
pkgver=0.7.0
|
|
pkgrel=1
|
|
pkgdesc="Writable nested helpers for django-rest-framework's serializers"
|
|
url="https://pypi.python.org/project/drf-writable-nested"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-django-rest-framework"
|
|
checkdepends="py3-pytest py3-pytest-cov py3-pytest-django"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/beda-software/drf-writable-nested/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
DJANGO_SETTINGS_MODULE=tests.settings .testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
674e2206a8dad2f61f6eed9bbf137593bacbceb4789c5e46e0e5a965f172daac76878e13d3f1492b2a2d8bc97d310b0625b1fd65de19f92d7f71153e9f5c3089 py3-drf-writable-nested-0.7.0.tar.gz
|
|
"
|