commit:     f80df08ad8a39e57b9e51d764676e25013a3cecf
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Mar 12 14:55:19 2026 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Thu Mar 12 14:55:19 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f80df08a

dev-python/pyinstrument: new package, add 5.1.2

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 dev-python/pyinstrument/Manifest                  |  2 ++
 dev-python/pyinstrument/metadata.xml              | 12 +++++++
 dev-python/pyinstrument/pyinstrument-5.1.2.ebuild | 44 +++++++++++++++++++++++
 3 files changed, 58 insertions(+)

diff --git a/dev-python/pyinstrument/Manifest b/dev-python/pyinstrument/Manifest
new file mode 100644
index 0000000000..bf8136fa38
--- /dev/null
+++ b/dev-python/pyinstrument/Manifest
@@ -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

diff --git a/dev-python/pyinstrument/metadata.xml 
b/dev-python/pyinstrument/metadata.xml
new file mode 100644
index 0000000000..6a96e6a88e
--- /dev/null
+++ b/dev-python/pyinstrument/metadata.xml
@@ -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>[email protected]</email>
+               <name>Paul Zander</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">joerick/pyinstrument</remote-id>
+               <remote-id type="pypi">pyinstrument</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/pyinstrument/pyinstrument-5.1.2.ebuild 
b/dev-python/pyinstrument/pyinstrument-5.1.2.ebuild
new file mode 100644
index 0000000000..97b9659b67
--- /dev/null
+++ b/dev-python/pyinstrument/pyinstrument-5.1.2.ebuild
@@ -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
+}

Reply via email to