dev-python/pyinstrument: new package, add 5.1.2

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-03-12 15:55:19 +01:00
parent e7dfe6f349
commit f80df08ad8
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST pyinstrument-5.1.2.tar.gz 266889 BLAKE2B f310a4e57abeddade594bf08f6c230fadd61a23cc25d2c26c814bf95d780e31af18d46f469e8bfef9936676b41b4f6119f2b7317ef3199edc90f66ba2cd73cf4 SHA512 552ed79d3ee9db4f164eee9198601ee9c57505a393654f1a472e5312421a86bb0c66994fdacc7ad2daa7f6ef9dcbec9b207cc2f6b28c22514437eb3a9464dcf7
DIST pyinstrument-5.1.2.tar.gz.provenance 9404 BLAKE2B f2cab00559e5710d3365e47707f26ffb0b4bf5cab9f496bba609b2ef6a91a5dc2dcf6d4573ff7c9b602b9066c85d2c66dc99d9a007ddc1a11e654e7b381ea3d3 SHA512 971fc5de6b06137d6928dbc37e2f6271a7e89aef2ace4265f22e8b92f09a2a92773e6e1c7357343c8cc6d28a3afcf8b9a8b4eb42ee107192e0125e300f7c70ec

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>negril.nx+gentoo@gmail.com</email>
<name>Paul Zander</name>
</maintainer>
<upstream>
<remote-id type="github">joerick/pyinstrument</remote-id>
<remote-id type="pypi">pyinstrument</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,44 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
PYPI_VERIFY_REPO=https://github.com/joerick/pyinstrument
inherit distutils-r1 pypi
DESCRIPTION="Call stack profiler for Python"
HOMEPAGE="
https://github.com/joerick/pyinstrument/
https://pypi.org/project/pyinstrument/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
>=dev-python/cffi-1.17.0[${PYTHON_USEDEP}]
>=dev-python/greenlet-3[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
python_prepare_all() {
# hack away flaky dep
sed -e '/from flaky import flaky/d' -i test/util.py || die
distutils-r1_python_prepare_all
}
python_test() {
rm -rf pyinstrument || die
epytest
}