ayaports/user/py3-django-hcaptcha/APKBUILD

31 lines
1 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-hcaptcha
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=django-hCaptcha
pkgver=0.2.0
pkgrel=0
pkgdesc="Django hCaptcha provides a simple way to protect your django forms using hCaptcha"
url="https://pypi.python.org/project/django-hCaptcha"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
checkdepends="python3-dev"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-hCaptcha/django-hCaptcha-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
2935b3e1ec2f76cf7cc872864febbb35bdfdd4e8428d6d2dc716f63c75764ede32d538971d8b7b262c49806527690d0664a4205568cc3d8370d8228d00e29dd7 py3-django-hcaptcha-0.2.0.tar.gz
"