mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
36 lines
984 B
Plaintext
36 lines
984 B
Plaintext
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-pure_eval
|
|
pkgver=0.2.2
|
|
pkgrel=0
|
|
pkgdesc="safely evaluate AST nodes without side effects"
|
|
url="https://github.com/alexmojaki/pure_eval"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-installer py3-build 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
|
|
python3 -m build \
|
|
--no-isolation \
|
|
--wheel \
|
|
.
|
|
}
|
|
|
|
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
|
|
"
|