# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=py3-stack_data pkgver=0.6.3 pkgrel=2 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=" cython py3-littleutils py3-pygments py3-pytest py3-typeguard py3-typing-extensions python3-dev " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/stack_data/archive/refs/tags/v$pkgver.tar.gz fix-pygments1.patch fix-pygments2.patch fix-pygments3.patch " 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() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl SETUPTOOLS_SCM_PRETEND_VERSION_FOR_STACK_DATA=${pkgver} \ .testenv/bin/python3 -m pytest } package() { local whl=.dist/stack_data-$pkgver-py3-none-any.whl python3 -m installer --dest="$pkgdir" "$whl" } sha512sums=" ac2f5021b57f29667490c17e83d1dfd1ac5199eda6319fb52882d6cd93adfe532a45ca2f86c864ebcb23586a1cc6297cc33e8a2b073db7fdc3382bec55d03065 py3-stack_data-0.6.3.tar.gz b3f5beadb505c1e1889a84d2e6b7fcebfee823257371bbfd119c606f38673601af22b962058d476af555195517741aecbd649edc50e10fd3b8ad0d32aa2b0737 fix-pygments1.patch b22ed1a6d8d0a2065a916a0c15b29868d73735f3541b5a63828ebb00912188f3b861bf787a04f6e8cfc526fa790ceaa0926cd8550949777d53231c9fa7bc6469 fix-pygments2.patch 29c3e485288985280785f6ba715e777b5bf44751d2992a2bd8c099503f67ef81ac69174b3a57c0022443b325e4e92b9cc5bd9e1145c163a29452e5e7c4ab5973 fix-pygments3.patch "