File PKGBUILD of Package python-asteval
pkgname=python-asteval
pkgver=1.0.7
pkgrel=1
pkgdesc="Minimalistic evaluator of python expression using ast module "
arch=(any)
url=https://github.com/lmfit/asteval
license=(MIT)
depends=(python-numpy)
makedepends=(python-build python-installer python-setuptools python-setuptools-scm python-wheel)
source=(https://github.com/lmfit/asteval/archive/refs/tags/${pkgver}.tar.gz)
sha256sums=('8c8ddece8c2ce356316a5eb13a309447f0ee63aa645fbbd289daf742074cdc86')
build() {
cd asteval-${pkgver}
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd asteval-${pkgver}
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m0644 LICENSE
}