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}} 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"
19 dev-python/setuptools[${PYTHON_USEDEP}]
21 dev-python/mock[${PYTHON_USEDEP}]
22 dev-python/ipaddress[${PYTHON_USEDEP}]
26 RESTRICT="!test? ( test )"
29 "${FILESDIR}/psutil-5.6.5-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 PYTHONPATH="${BUILD_DIR}/lib" ${PYTHON} psutil/tests/__main__.py || \
41 die "tests failed with ${EPYTHON}"