# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-pyinstrument pkgver=4.4.0 pkgrel=2 pkgdesc="Call stack profiler for Python" url="https://github.com/joerick/pyinstrument" arch="all" license="BSD-3-Clause" makedepends="py3-setuptools python3-dev" checkdepends="py3-pytest py3-flaky py3-trio py3-greenlet" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/joerick/pyinstrument/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/pyinstrument-$pkgver" options="!check" # currently not working build() { python3 setup.py build } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 setup.py install test-env/bin/python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" bf20ebdf52d0a51515a3c621ba08b59032dea26d5d023dac3eeb477d4d408305c69db4ee60743c9eeb4e05111feb6da877d05da36b42a433a9d9f0af944cafd7 py3-pyinstrument-4.4.0.tar.gz "