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