mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
34 lines
986 B
Text
34 lines
986 B
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-pure_eval
|
|
pkgver=0.2.2
|
|
pkgrel=1
|
|
pkgdesc="safely evaluate AST nodes without side effects"
|
|
url="https://github.com/alexmojaki/pure_eval"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-setuptools_scm"
|
|
checkdepends="py3-pytest py3-typeguard"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/pure_eval/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/pure_eval-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
local whl=dist/pure_eval-$pkgver-py3-none-any.whl
|
|
python3 -m installer --dest="$pkgdir" "$whl"
|
|
}
|
|
|
|
sha512sums="
|
|
9a6f3d745590a09af1ed629cd4fa0cd0314b837c26f375a6be038d40ce610c0526aa192d9758e7406d7ea29b270fe09a3d9918d70d6cf3dedaa9e2975c91a0d0 py3-pure_eval-0.2.2.tar.gz
|
|
"
|