1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/py3-simpleeval/APKBUILD
Tyrone Buggims 2357c32ae7 testing/py3-simpleeval: new aport
https://pypi.org/project/simpleeval
A simple, safe single expression evaluator library.
- Applied mio's suggestions

testing/py3-simpleeval: apply suggestions from mio
2025-06-24 19:23:22 +00:00

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-pypi, template 4
# Maintainer: Tyrone Buggims <tyr0ne@onionmail.org>
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"