35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-pyinstrument
|
|
pkgver=4.6.2
|
|
pkgrel=0
|
|
pkgdesc="Call stack profiler for Python"
|
|
url="https://github.com/joerick/pyinstrument"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel 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() {
|
|
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
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
da23988e6c68876cb8920ce284326f349425303ae36718c5c479b72b5f5ca5d48ced1674bcab71851f60e81a0985bb668bfa89a8b96cc20a1faa0dd7e623ec50 py3-pyinstrument-4.6.2.tar.gz
|
|
"
|