1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/community/py3-django-q2/APKBUILD
2025-05-07 06:32:03 +00:00

76 lines
1.9 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-q2
_pyname="django-q2"
pkgver=1.8.0
pkgrel=0
# riscv64: test failure with test_timeout
arch="noarch !riscv64"
pkgdesc="A multiprocessing distributed task queue for Django"
url="https://pypi.python.org/project/django-q2"
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-wheel
py3-poetry-core
"
checkdepends="
valkey
py3-pytest-django
py3-boto3
py3-psutil
py3-mongo
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/django-q2/django-q2/archive/refs/tags/v$pkgver.tar.gz
fix-HiredisParser-reference.patch
"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
valkey-server &
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# test_qcluster: stalls
# test_scheduler: requires croniter module
# test_mongo: reqires setting up mongo server
# test_max_rss: failure on 32-bit arches
REDIS_HOST=127.0.0.1 \
MONGO_HOST=127.0.0.1 \
.testenv/bin/python3 -m pytest -v -k 'not test_qcluster and not test_scheduler and not test_mongo and not test_max_rss' || FAIL=true
pkill valkey-server
if [ "$FAIL" = "true" ]; then
return 1
fi
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
8c2596eafb795aa18e0994dadb29d62cf89f99dad74292101d54966b14a0218792c3751e708f3e8ac3d9d8420dfd0a65051b00317005c1e7ea13607a60a2b9c5 py3-django-q2-1.8.0.tar.gz
b4df8b946cff0b9160a8dc2a94f7ebbc288c35a4ee956f3f29d7a268f6a769bbc2bfdec6b7bd2e4c7134974820f306d07dfba37aeae2c37b8b9eefb2b3f3e5d4 fix-HiredisParser-reference.patch
"