# Automatically generated by apkbuild-pypi, template 4 # Maintainer: Tyrone Buggims pkgname=py3-simpleeval pkgver=1.0.3 pkgrel=0 license="MIT" # _pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=simpleeval pkgdesc="A simple, safe single expression evaluator library." url="https://pypi.org/project/simpleeval/" arch="noarch" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel py3-hatchling" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/s/simpleeval/simpleeval-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums="e5dbfe40c48afcc75c0d2bae00f8fd5e33f56052a0f4671ae89cb1d072e218190af3115acf6bfbecbeae8c9a4b39cb75adac9071d44e3c851a9ad31c89c26139 simpleeval-1.0.3.tar.gz"