summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/line_profiler/Manifest1
-rw-r--r--dev-python/line_profiler/line_profiler-4.1.0.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest
index 200330e53f5f..6f5d26fab9b3 100644
--- a/dev-python/line_profiler/Manifest
+++ b/dev-python/line_profiler/Manifest
@@ -1 +1,2 @@
DIST line_profiler-4.0.3.gh.tar.gz 63873 BLAKE2B b34baa89d6625e0887823a44b89fc1b5c3a069ba5d160b959fd435080cfa64e68f693a03e3ed2741efc6d7ca71a60ac0b0e43bd8ba3101089a4e3d0d6c88303e SHA512 3f7734e3651588b1d40df0836d8c93384541b6a010e70becc419101377ac90374fc8f202b927b42ca4aec3e030d9ed52f4955f9fcae3c8d0396f96e21a29eeac
+DIST line_profiler-4.1.0.gh.tar.gz 99250 BLAKE2B aa875dfb8cdbaaa701a03d10fd904504825d58e551dddabddbe0abca777a584bae5c37f4b3ab80d10dc869138106d70c3ff243a7d28e570983427520dd4ee569 SHA512 08e0395b80f8c111725227abea7e8b2d6864da840a0a6f4de5eb71a2df2ae78871c930897b49d75a184973c1ce21d61106817bd0b8d4556462f0505bbbc21fe1
diff --git a/dev-python/line_profiler/line_profiler-4.1.0.ebuild b/dev-python/line_profiler/line_profiler-4.1.0.ebuild
new file mode 100644
index 000000000000..bb034b04c80c
--- /dev/null
+++ b/dev-python/line_profiler/line_profiler-4.1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 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_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Line-by-line profiler"
+HOMEPAGE="
+ https://github.com/pyutils/line_profiler/
+ https://pypi.org/project/line-profiler/
+"
+SRC_URI="
+ https://github.com/pyutils/line_profiler/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/ipython[${PYTHON_USEDEP}]
+"
+# <cython-3: https://bugs.gentoo.org/911735
+BDEPEND="
+ <dev-python/cython-3[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/ubelt[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export LINE_PROFILER_BUILD_METHOD=cython
+
+python_test() {
+ cd tests || die
+ epytest
+}