backports/py3-pyinstrument: new aport

This commit is contained in:
Antoine Martin 2024-01-18 15:38:29 -05:00
parent b059719a92
commit 38835d8697
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,33 @@
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
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
"