aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-03-30 22:41:13 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-03-30 21:13:15 +0000
commit5087cdbdf49f8e200cd65d776a2c8ecf592dc496 (patch)
treec21dbcde818e2811f3e2db2a04c1f870153a0280
parent0018149009679513d30134664a06569af0d5a213 (diff)
downloadaports-5087cdbdf49f8e200cd65d776a2c8ecf592dc496.tar.bz2
aports-5087cdbdf49f8e200cd65d776a2c8ecf592dc496.tar.xz
community/py3-aiofiles: fix tests
The tarball from PyPI is missing the test suite.
-rw-r--r--community/py3-aiofiles/APKBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/community/py3-aiofiles/APKBUILD b/community/py3-aiofiles/APKBUILD
index 4d2b72612a..14cecd8bc7 100644
--- a/community/py3-aiofiles/APKBUILD
+++ b/community/py3-aiofiles/APKBUILD
@@ -1,16 +1,17 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname="py3-aiofiles"
+pkgname=py3-aiofiles
_pkgname=aiofiles
pkgver=0.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="File support for asyncio"
-url="https://pypi.org/project/aiofiles"
+url="https://github.com/Tinche/aiofiles"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev py3-setuptools"
-source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+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() {
@@ -18,11 +19,11 @@ build() {
}
check() {
- python3 setup.py check
+ PYTHONPATH="$builddir"/build/lib pytest
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
}
-sha512sums="ad41aed2151fc2adf01ddbaec7fcc772c2ee8e33609dff881d00e255412c2142b0594e70eca32e73accd120d13e1f112b20a627fae2fa343b96d18f59371c9da py3-aiofiles-0.4.0.tar.gz"
+sha512sums="9e1f8b2beb3ca2996b35de9281ceafbb8ccdeab4b213f9605cb5908558c5f495d1cf4481ac229ca44bb236ad99826d89d137ec6ac4386c23b6e056b657a6bf4a aiofiles-0.4.0.tar.gz"