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} )
8 inherit distutils-r1 eutils
10 DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic"
11 HOMEPAGE="http://mpmath.org/"
12 SRC_URI="http://mpmath.org/files/${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}/${P}.patch"
32 # this fails with the current version of dev-python/py
33 rm ${PN}/conftest.py || die
35 # this test requires X
36 rm ${PN}/tests/test_visualization.py || die
38 distutils-r1_python_prepare_all