1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
9 DESCRIPTION="Retrieve information on running processes and system utilization"
10 HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 RESTRICT="!test? ( test )"
21 $(python_gen_cond_dep '
22 dev-python/mock[${PYTHON_USEDEP}]
23 dev-python/ipaddress[${PYTHON_USEDEP}]
29 "${FILESDIR}/psutil-5.7.0-tests.patch"
33 if [[ ${EPYTHON} == pypy* ]]; then
34 ewarn "Not running tests on ${EPYTHON} since they are broken"
38 # since we are running in an environment a bit similar to CI,
39 # let's skip the tests that are disable for CI
40 TRAVIS=1 APPVEYOR=1 "${EPYTHON}" psutil/tests/runner.py ||
41 die "tests failed with ${EPYTHON}"
45 # force -j1 to avoid .o linking race conditions
47 distutils-r1_python_compile