backports/py3-pyinstrument: new aport
This commit is contained in:
parent
9a4e64a8b3
commit
20cd011cbb
1 changed files with 35 additions and 0 deletions
35
backports/py3-pyinstrument/APKBUILD
Normal file
35
backports/py3-pyinstrument/APKBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
||||
pkgname=py3-pyinstrument
|
||||
pkgver=4.6.1
|
||||
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="
|
||||
7eb24fb27bfb145b5a06976bdaac1d06de87549f3ae9505d4d56608af0776ff18f5ec9fccf5d3f3df797f1b91281d15bbd825fa42d268baf91524fc2f4efd59a py3-pyinstrument-4.6.1.tar.gz
|
||||
"
|
Loading…
Reference in a new issue