mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-15 06:22:38 +02:00
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-channels
|
|
_pyname="channels"
|
|
pkgver=4.2.2
|
|
pkgrel=0
|
|
arch="noarch"
|
|
pkgdesc="Developer-friendly asynchrony for Django"
|
|
url="https://pypi.python.org/project/channels"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-django
|
|
py3-asgiref
|
|
py3-daphne
|
|
"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-django
|
|
py3-pytest-asyncio
|
|
py3-async-timeout
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/django/channels/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$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
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
8f7c8f27981988fed8ec254db91ce0a130b24842949ef94cc9ae21b4a259a7003654ec86c4e18aa81924e26d9b81b6a2aafaac404e490cbdda6b4a100476917a py3-channels-4.2.2.tar.gz
|
|
"
|