You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
679 B
27 lines
679 B
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="convert python profile data to kcachegrind calltree form"
|
|
HOMEPAGE="https://pypi.python.org/pypi/pyprof2calltree/"
|
|
# pypi tarball lacks tests
|
|
SRC_URI="https://github.com/pwaller/pyprof2calltree/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/pyprof2calltree-1.4.0-py3-test.patch
|
|
)
|
|
|
|
python_test() {
|
|
"${PYTHON}" -m tests.test_integration || die "Tests fail with ${EPYTHON}"
|
|
}
|