diff options
Diffstat (limited to 'dev-python/yappi/yappi-1.3.0-r1.ebuild')
| -rw-r--r-- | dev-python/yappi/yappi-1.3.0-r1.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-python/yappi/yappi-1.3.0-r1.ebuild b/dev-python/yappi/yappi-1.3.0-r1.ebuild new file mode 100644 index 000000000000..b089fb1d2ed5 --- /dev/null +++ b/dev-python/yappi/yappi-1.3.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +# no tags on github, no tests on pypi +COMMIT_HASH="ade55478807aa957714e0ef3e228d0cf0c68949d" + +DESCRIPTION="Yet Another Python Profiler" +HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi" +SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT_HASH}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-python/gevent[${PYTHON_USEDEP}] )" + +distutils_enable_tests unittest + +PATCHES=( + "${FILESDIR}/yappi-1.2.5-warnings.patch" + "${FILESDIR}/yappi-1.3.0-tests.patch" +) + +python_prepare_all() { + cp tests/utils.py "${S}" || die + distutils-r1_python_prepare_all +} |
