diff --git a/community/py3-pylast/APKBUILD b/community/py3-pylast/APKBUILD
index 7fe169a1ba009de97f6237e67a6348af3061839f..f109d5217147181ac11af1b587e8d019e9e9b14c 100644
--- a/community/py3-pylast/APKBUILD
+++ b/community/py3-pylast/APKBUILD
@@ -1,20 +1,19 @@
 # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
 # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 pkgname=py3-pylast
-pkgver=5.2.0
-pkgrel=1
+pkgver=5.3.0
+pkgrel=0
 pkgdesc="Python interface to the last.fm API"
 url="https://github.com/pylast/pylast"
-arch="noarch !ppc64le !armhf" # py3-httpx
+arch="noarch"
 license="Apache-2.0"
 replaces="py-pylast"
-# Requires unpackaged flaky
-options="!check"
-depends="python3 py3-httpx"
+depends="py3-httpx"
 makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs"
+checkdepends="py3-flaky py3-pytest"
 subpackages="$pkgname-pyc"
 source="https://files.pythonhosted.org/packages/source/p/pylast/pylast-$pkgver.tar.gz"
-builddir="$srcdir"/pylast-$pkgver
+builddir="$srcdir/pylast-$pkgver"
 
 build() {
 	gpep517 build-wheel \
@@ -22,11 +21,17 @@ build() {
 		--output-fd 3 3>&1 >&2
 }
 
+check() {
+	python3 -m venv --clear --without-pip --system-site-packages .testenv
+	.testenv/bin/python3 -m installer .dist/pylast*.whl
+	.testenv/bin/python3 -m pytest
+}
+
 package() {
 	python3 -m installer -d "$pkgdir" \
 		.dist/pylast*.whl
 }
 
 sha512sums="
-1ae76ff4ec6f009388abfcf8525f1c19e47cbabaace1f5e8c518819d0856168d855b789e3c08a9699dd7ab88ebfc7c3ab81c2d74a0fa1fd210450741b99da8c6  pylast-5.2.0.tar.gz
+b8d015d9d1452a650a6fc05019a145c2c5104c1acd0e296d7a9b536fd91710b4efe3dab2646b4b373ca13278fbdc385a64472829dfd1cf8980a22a5f2314afe9  pylast-5.3.0.tar.gz
 "