aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2018-02-10 17:12:44 +0000
committerTimo Teräs <timo.teras@iki.fi>2018-02-13 14:11:47 +0000
commit7f19ce25ef3deb546dcc9ce6cb77dc8b2d8e2418 (patch)
tree4fa07588d4dfb8da3976438a68c1f60ee0f99900 /testing
parent598de2d358add9aea2739f84c666a5e312f49349 (diff)
downloadaports-7f19ce25ef3deb546dcc9ce6cb77dc8b2d8e2418.tar.bz2
aports-7f19ce25ef3deb546dcc9ce6cb77dc8b2d8e2418.tar.xz
testing/py3-aiohttp-session: upgrade to 2.2.0
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-aiohttp-session/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/testing/py3-aiohttp-session/APKBUILD b/testing/py3-aiohttp-session/APKBUILD
index e3f3f5da0d..162b647895 100644
--- a/testing/py3-aiohttp-session/APKBUILD
+++ b/testing/py3-aiohttp-session/APKBUILD
@@ -2,15 +2,17 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-aiohttp-session
_pkgname=aiohttp_session
-pkgver=1.0.1
+pkgver=2.2.0
pkgrel=0
pkgdesc="Sessions support for aiohttp"
url="http://aiohttp-session.readthedocs.io/"
arch="noarch"
license="Apache-2.0"
+# Requires packages for tests which are not available
+options="!check"
depends="py3-aiohttp"
-makedepends="python3-dev"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v1.0.1.tar.gz"
+makedepends="python3-dev py3-setuptools"
+source="aiohttp-session-${pkgver}.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v$pkgver.tar.gz"
builddir="$srcdir"/aiohttp-session-$pkgver
build() {
@@ -18,9 +20,14 @@ build() {
python3 setup.py build
}
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="3e3ee561737b22fb9dda25c2caa4abd009e5748fbca21f74850046a520ff0d2845b45ba0fa5eac313f11362404b3d31edc8c79644f8a2d128ad2504d9efad27f py3-aiohttp-session-1.0.1.tar.gz"
+sha512sums="6215276cb1df0d8db7845ad016895a330835e97f1e6bf58700e090f8b6856dc919743b903ae23cdb091cf280df60954cf4c09ade00ee1471ff4d8901718a8d71 aiohttp-session-2.2.0.tar.gz"