mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-30 16:01:59 +01:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-uvloop
|
|
pkgver=0.17.0
|
|
pkgrel=0
|
|
pkgdesc="Ultra fast asyncio event loop"
|
|
url="https://github.com/MagicStack/uvloop"
|
|
license="MIT OR Apache-2.0"
|
|
arch="all !armhf !ppc64le" # tests fail
|
|
depends="python3"
|
|
makedepends="py3-setuptools python3-dev cython libuv-dev"
|
|
checkdepends="py3-pytest py3-aiohttp py3-openssl py3-psutil"
|
|
source="https://github.com/MagicStack/uvloop/archive/v$pkgver/py3-uvloop-$pkgver.tar.gz
|
|
tcp-tests.patch
|
|
"
|
|
options="!check" # mypy validation fails with our mypy version
|
|
builddir="$srcdir/uvloop-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build build_ext --inplace --cython-always --use-system-libuv
|
|
}
|
|
|
|
check() {
|
|
PYTHONASYNCIODEBUG=1 PYTHONPATH="$(echo "$builddir"/build/lib.linux-*)" pytest -v \
|
|
-k 'not test_remote_shutdown_receives_trailing_data'
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --skip-build
|
|
}
|
|
|
|
sha512sums="
|
|
6a5ba557f13deb8eed8c9c8042fed4ba5aaa3c0a8f1012b8421d2f223e4e3856dc081d747e92fec6b052b1125c66dfb3fcb297c7eab54f9aeaf50aab5772c5c7 py3-uvloop-0.17.0.tar.gz
|
|
7149b80ba9fe0389531f6befe0570c0a1b11639a7d544e84378cc2cb3b107269b1bbcd211f09dc2824bdf1b0971714780bd80e0a19941d215b1f40807cfd44b0 tcp-tests.patch
|
|
"
|