# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-blurhash
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=blurhash
pkgver=1.1.4
pkgrel=4
pkgdesc="Pure-Python implementation of the blurhash algorithm."
url="https://pypi.org/project/blurhash"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# No tests in the pypi tarball, no git tags
	# https://github.com/halcy/blurhash-python/issues/4
	# python3 setup.py test
	:
}

package() {
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
eacef78927a1299bec19f73709435b1be55797273888e7856bbfd46d2aa1afa02f54505c15b76dcd6bd15a6817da0171aa412570c33c7ad487bfe10940ef3fd6  blurhash-1.1.4.tar.gz
"
