mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
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
This commit is contained in:
parent
e3996ee2af
commit
2357c32ae7
1 changed files with 36 additions and 0 deletions
36
testing/py3-simpleeval/APKBUILD
Normal file
36
testing/py3-simpleeval/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 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"
|
Loading…
Add table
Add a link
Reference in a new issue