1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_6,3_7,3_8} )
8 inherit distutils-r1 eutils
10 DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
11 HOMEPAGE="http://mpmath.org/"
12 SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64 ~arm ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
18 IUSE="gmp matplotlib test"
19 RESTRICT="!test? ( test )"
22 gmp? ( dev-python/gmpy )
23 matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )"
25 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
27 python_prepare_all() {
29 "${FILESDIR}/${PN}-1.0.0.patch"
32 # this test requires X
33 rm ${PN}/tests/test_visualization.py || die
35 distutils-r1_python_prepare_all
39 pushd ${PN}/tests >/dev/null
40 ${EPYTHON} runtests.py -local