aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-aiofiles/APKBUILD
blob: 444eb8ce8955e6b8fb75846f3bc3f88f67b94457 (plain)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-aiofiles
_pkgname=aiofiles
pkgver=0.5.0
pkgrel=0
pkgdesc="File support for asyncio"
url="https://github.com/Tinche/aiofiles"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-pytest py3-pytest-asyncio"
source="$_pkgname-$pkgver.tar.gz::https://github.com/Tinche/aiofiles/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir"/build/lib pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="89eb1af506bdf5f3f2e9c3afe90f17d521ada1cdeb449dcdc800d4faa4edc1c9ca93811915aa059d8c5a1b0a3aaa40231a46b3d041ca745e071628293bddf1b7  aiofiles-0.5.0.tar.gz"