mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 02:35:23 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-stack_data
|
|
pkgver=0.6.2
|
|
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-gpep517 py3-setuptools_scm py3-wheel"
|
|
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
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
local whl=dist/stack_data-$pkgver-py3-none-any.whl
|
|
python3 -m installer --dest="$pkgdir" "$whl"
|
|
}
|
|
|
|
sha512sums="
|
|
186ce56894da4a301b74f32a15fedf784e7fccc7363444bc352f01280a8a43156b703295f4c83b0862070f8a87922a3e9507c7e7ec565a0dff440f0ca8eb6e57 py3-stack_data-0.6.2.tar.gz
|
|
"
|