aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-aiohttp/APKBUILD
blob: 40846745414abbac46b387e49113401538c050d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-aiohttp
_pkgname=aiohttp
pkgver=2.3.3
pkgrel=0
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"/$_pkgname-$pkgver/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="48dbc6b47483a7f162047fdc29f3cdfc95650e5f357e86a38b7be05832b3599c1b6740b818092db2f03addf3b8be4643aafd8d15118c9fc42d07708027b1bfbb  py3-aiohttp-2.3.3.tar.gz"