mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
62 lines
1.5 KiB
Text
62 lines
1.5 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-aiohttp
|
|
_pkgname=aiohttp
|
|
pkgver=3.8.4
|
|
pkgrel=1
|
|
pkgdesc="HTTP client/server for asyncio"
|
|
url="https://pypi.org/project/aiohttp"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-aiosignal
|
|
py3-async-timeout
|
|
py3-attrs
|
|
py3-brotli
|
|
py3-charset-normalizer
|
|
py3-idna-ssl
|
|
py3-multidict
|
|
py3-typing-extensions
|
|
py3-yarl
|
|
python3
|
|
"
|
|
makedepends="python3-dev py3-setuptools"
|
|
checkdepends="py3-pytest py3-pytest-cov py3-pytest-mock py3-async_generator py3-freezegun"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
case "$CARCH" in
|
|
s390x)
|
|
# fails due to speed and the event loop closes
|
|
options="$options !check"
|
|
;;
|
|
esac
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# need testing/py3-re-assert
|
|
rm -f tests/test_client_session.py \
|
|
tests/test_streams.py \
|
|
tests/test_urldispatch.py \
|
|
tests/test_web_response.py \
|
|
tests/test_proxy_functional.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$(echo build/lib.*)" \
|
|
pytest -W ignore::DeprecationWarning -v \
|
|
-k 'not test_no_warnings and not test_set_loop_default_loop and not test_default_loop'
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --skip-build
|
|
}
|
|
|
|
sha512sums="
|
|
ee193320d57161ba9d96b22502cea4eddb05d9586bde5ba1ce813e0bd149f62286ab8a76f120ef2a69f8bf882ab0605ca42103c0811fe53c7a024682ee31aa1e py3-aiohttp-3.8.4.tar.gz
|
|
"
|