2022-04-08 04:30:19 +00:00

37 lines
1.1 KiB
Plaintext

# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-stack_data
pkgver=0.1.3
pkgrel=0
pkgdesc="library that extracts data from stack frames and tracebacks"
url="https://github.com/alexmojaki/stack_data"
arch="noarch"
license="MIT"
depends="python3 py3-executing py3-asttokens py3-pure_eval"
makedepends="py3-build py3-installer py3-wheel py3-setuptools_scm"
checkdepends="py3-pytest py3-typeguard"
options="!check" # requires unpackaged littleutils
source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/stack_data/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/stack_data-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 -m build \
--no-isolation \
--wheel \
.
}
check() {
pytest
}
package() {
local whl=dist/stack_data-$pkgver-py3-none-any.whl
python3 -m installer --dest="$pkgdir" "$whl"
}
sha512sums="
9a88ccf668017f661c00962d643794c481a4eccc0b47bbd250aa3ac2374c14544af65479f2455357566e0220eeb2a4d41241a7bc0e478461e9eaff8f0b2a889d py3-stack_data-0.1.3.tar.gz
"