aports/community/py3-daphne/APKBUILD
Antoine Martin c1453d4b58 community/py3-daphne: upgrade to 4.2.0
* Python 3.13 support
2025-05-26 14:23:46 +00:00

54 lines
1.2 KiB
Text

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-daphne
_pkgreal=daphne
pkgver=4.2.0
pkgrel=0
pkgdesc="HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP"
url="https://github.com/django/daphne"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-twisted
py3-autobahn
py3-asgiref
"
checkdepends="
py3-hypothesis
py3-django
py3-cryptography
py3-pytest
py3-pytest-asyncio
py3-pytest-runner
"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/django/daphne/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver
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
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
f3510915421dd828d83e902be34e74e8ba49b5a7fefffa9527bc64a0e5ed2c8f27dd5d887a15df2ff3d020719ec29f09af1f29d6d42b8552142b349a8eb852a4 py3-daphne-4.2.0.tar.gz
"