_pkgname=thumbhash pkgname="python-$_pkgname" pkgver=0.1.2 pkgrel=1 pkgdesc='Python port of thumbhash, a very compact representation of an image placeholder' arch=('x86_64' 'aarch64') url="https://github.com/justinforlenza/thumbhash-py" license=('MIT') depends=('python-pillow') makedepends=( 'python-build' 'python-installer' 'python-wheel' 'python-hatchling' ) checkdepends=('python-pytest') source=("https://github.com/justinforlenza/thumbhash-py/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz") sha256sums=('ef4e6398f93f3b5ad480dc8e3a3b3a200813c86a8857fb069f8478be809f8247') build() { cd "$_pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }