projects/aports·blob master · refs

38 lines · 1020 B

1# Contributor: Haelwenn (lanodan) Monnier <[email protected]>
2# Maintainer:
3pkgname=py3-blurhash
4#_pkgreal is used by apkbuild-pypi to find modules at PyPI
5_pkgreal=blurhash
6pkgver=1.1.4
7pkgrel=6
8pkgdesc="Pure-Python implementation of the blurhash algorithm."
9url="https://pypi.org/project/blurhash"
10arch="noarch"
11license="MIT"
12depends="python3"
13makedepends="py3-setuptools"
14subpackages="$pkgname-pyc"
15source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgreal-$pkgver"
17
18build() {
19 python3 setup.py build
20}
21
22check() {
23 # No tests in the pypi tarball, no git tags
24 # https://github.com/halcy/blurhash-python/issues/4
25 # python3 setup.py test
26 :
27}
28
29package() {
30 python3 setup.py install \
31 --prefix=/usr \
32 --root="$pkgdir" \
33 --single-version-externally-managed
34}
35
36sha512sums="
37eacef78927a1299bec19f73709435b1be55797273888e7856bbfd46d2aa1afa02f54505c15b76dcd6bd15a6817da0171aa412570c33c7ad487bfe10940ef3fd6 blurhash-1.1.4.tar.gz
38"