mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
Most of these updates is based on data from https://repology.org/, detection based on permanent redirect from http:// to https://. $source urls are updated when they contain $url as substring.
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-aiohttp
|
|
_pkgname=aiohttp
|
|
pkgver=2.3.1
|
|
pkgrel=1
|
|
pkgdesc="HTTP client/server for asyncio"
|
|
url="https://pypi.python.org/pypi/aiohttp"
|
|
arch="all !aarch64"
|
|
license="ASL 2.0"
|
|
depends="python3 py3-async-timeout py3-chardet py3-multidict py3-yarl"
|
|
makedepends="python3-dev"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
python3 setup.py check
|
|
}
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# Workaround to remove x86_64 .so file that is shipped in source
|
|
# and make strip fails in arches != from x86_64
|
|
rm "$srcdir"/aiohttp-2.3.1/aiohttp/_http_parser.cpython-36m-x86_64-linux-gnu.so
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python3 setup.py install --root="$pkgdir" --optimize=1
|
|
}
|
|
|
|
sha512sums="1be4e2e9e7ba7dc59427fce60b98a026321a750011517fc6c044c0c5b0d6297b840c42f099224944dd19b00cda360a5f688cd022de73e98a03e3266afe9c5cf4 py3-aiohttp-2.3.1.tar.gz"
|