mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 10:34:44 +02:00
51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-nested-admin
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=django-nested-admin
|
|
pkgver=4.1.1
|
|
pkgrel=1
|
|
# upstream sometimes does not tag releases
|
|
_gittag=f9508c4c5079e17017aaef8240230601ccabe211
|
|
pkgdesc="Django admin classes that allow for nested inlines"
|
|
url="https://pypi.org/project/django-nested-admin"
|
|
arch="noarch"
|
|
license="BSD-2-Clause"
|
|
depends="py3-python-monkey-business"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-pytest-xdist
|
|
py3-pytest-django
|
|
py3-pillow
|
|
py3-dj-database-url
|
|
py3-django-selenosis
|
|
py3-selenium
|
|
"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
source="$pkgname-$_gittag.tar.gz::https://github.com/theatlantic/django-nested-admin/archive/$_gittag.tar.gz"
|
|
options="!check" # missing py3-selenium and py3-django-selenosis
|
|
builddir="$srcdir/$_pkgreal-$_gittag"
|
|
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 .dist/*.whl
|
|
cd "$builddir"/nested_admin
|
|
DJANGO_SETTINGS_MODULE=tests.settings "$builddir"/.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7dc3e6f7a8be618bc56f7da3381f179efb56f1d3173f4ddac3524e4a544107af617e5c84be92d4ffdd606e200a4cf664f2128d6770d1affce8d2fbf96f6ae9a1 py3-django-nested-admin-f9508c4c5079e17017aaef8240230601ccabe211.tar.gz
|
|
"
|