aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-stack_data/APKBUILD
blob: a823a083580f846c955eda4592fc4afae4aeb3ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-stack_data
pkgver=0.5.1
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="
3dfaf9de5a1768dfb3e70447ef453ea4a813c5bb8da22a9d1823ae98c5e07c741425ce18f4bf81493f5cb7920db685dbfd408cded6d917990445197a5077bbdd  py3-stack_data-0.5.1.tar.gz
"