aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-stack_data/APKBUILD
blob: f69ff469cd5a5ad46fe040bbff498d33d5a6de54 (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.0
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="
51d3f2ed0ca854fef7cf24cf7cc1f3436ed288814cb0ae786d417b349283654851594b6a5beea9a1f568fcebf11e9280c0f422baaad0bd4181a3498737320bca  py3-stack_data-0.5.0.tar.gz
"