ayaports/testing/py3-django-q/APKBUILD

63 lines
1.5 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-q
_pyname="django-q"
pkgver=1.6.1
pkgrel=0
arch="noarch"
pkgdesc="A multiprocessing distributed task queue for Django"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="
py3-asgiref
py3-blessed
py3-dateutil
py3-django
py3-django-picklefield
py3-django-redis
py3-future
py3-tz
py3-redis
py3-six
py3-sqlparse
py3-wcwidth
"
makedepends="
py3-gpep517
py3-installer
py3-wheel
py3-poetry-core
"
checkdepends="
py3-pytest
"
# 'python-boto3: Amazon Simple Queue Service message queue support'
# 'python-psutil: resource usage limit support'
# 'python-pymongo: MongoDB as a message broker support'
options="!check" # Missing check depends
source="$pkgname-$pkgver.tar.gz::https://github.com/django-q2/django-q2/archive/refs/tags/v$pkgver.tar.gz
build-system.patch
"
builddir="$srcdir"/django-q2-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$builddir" pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
063739b53df5365eb38f01f0506786683059fcab62ec53e5839f19b97974b3b23358c0340166801d95e432abbda60f1fbed6a4e85c0d8f3a7f91046ad877c0fa py3-django-q-1.6.1.tar.gz
6c517f2abda689031fe4d62a7a7aa5db4885e1bcaedb575463eb1d065e4e7504ca0548395046d8f5efe2dd9fc7e073fbceb7447019fdde63a34d35894f14057e build-system.patch
"