# Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=py3-django-querysetsequence #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=django-querysetsequence pkgver=0.17 pkgrel=1 pkgdesc="Chain together multiple (disparate) QuerySets to treat them as a single QuerySet." url="https://pypi.python.org/project/django-querysetsequence" arch="noarch" license="ISC" depends="py3-django" checkdepends="py3-pytest py3-pytest-django py3-flake8 py3-isort" makedepends="py3-setuptools py3-gpep517 py3-wheel" source="$pkgname-$pkgver.tar.gz::https://github.com/clokep/django-querysetsequence/archive/refs/tags/$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 .dist/*.whl DJANGO_SETTINGS_MODULE=tests.settings .testenv/bin/python3 -m pytest -v } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 78b13a278377a96e25acd3007380379b1e2966e2b9762259c98b599023830a2562e95b3ac0c4ca39920f7c79f6e1f609bde3304edbc55fec0c9cb4f64697047c py3-django-querysetsequence-0.17.tar.gz "