2019-11-04 21:41:26 +01:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2019-03-26 22:51:25 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2019-11-04 21:41:26 +01:00
|
|
|
PYTHON_COMPAT=( python3_{5,6} )
|
2019-03-26 22:51:25 +01:00
|
|
|
|
|
|
|
inherit distutils-r1 virtualx
|
|
|
|
|
2019-11-04 21:41:26 +01:00
|
|
|
DESCRIPTION="The FSL Python Library"
|
|
|
|
HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fslpy"
|
2019-03-26 22:51:25 +01:00
|
|
|
SRC_URI="https://github.com/pauldmccarthy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
DEPEND="
|
2019-11-04 21:41:26 +01:00
|
|
|
test? (
|
|
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
|
|
|
)
|
2019-03-26 22:51:25 +01:00
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
dev-python/deprecation[${PYTHON_USEDEP}]
|
2019-11-04 21:41:26 +01:00
|
|
|
dev-python/h5py[${PYTHON_USEDEP}]
|
|
|
|
dev-python/indexed_gzip[${PYTHON_USEDEP}]
|
2019-03-26 22:51:25 +01:00
|
|
|
=dev-python/numpy-1*[${PYTHON_USEDEP}]
|
|
|
|
=dev-python/six-1*[${PYTHON_USEDEP}]
|
|
|
|
dev-python/trimesh[${PYTHON_USEDEP}]
|
2019-11-04 21:41:26 +01:00
|
|
|
=dev-python/wxpython-4*[${PYTHON_USEDEP}]
|
|
|
|
=sci-libs/Rtree-0.8.3*[${PYTHON_USEDEP}]
|
2019-03-26 22:51:25 +01:00
|
|
|
sci-libs/scipy[${PYTHON_USEDEP}]
|
2019-11-04 21:41:26 +01:00
|
|
|
>=sci-libs/nibabel-2.3.1[${PYTHON_USEDEP}]
|
2019-03-26 22:51:25 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
# Tests fail on Gentoo with mysterious `Fatal Python error: deallocating None`
|
|
|
|
# https://github.com/pauldmccarthy/fslpy/issues/3
|
|
|
|
#RESTRICT="test"
|
|
|
|
|
2019-04-04 21:17:31 +02:00
|
|
|
#python_prepare_all() {
|
|
|
|
# if use test; then
|
|
|
|
# # Reported upstream
|
|
|
|
# # https://github.com/pauldmccarthy/fslpy/issues/3
|
|
|
|
# #sed -i -e \
|
|
|
|
# # "/def test_loadVestLutFile():/i@pytest.mark.xfail(reason='Known to fail on Gentoo')" \
|
|
|
|
# # tests/test_vest.py || die
|
|
|
|
# #rm tests/test_vest.py
|
|
|
|
# fi
|
|
|
|
# distutils-r1_python_prepare_all
|
|
|
|
#}
|
2019-03-26 22:51:25 +01:00
|
|
|
|
2019-11-04 21:41:26 +01:00
|
|
|
PATCHES=( "${FILESDIR}/${P}-exclude_tests.patch" )
|
|
|
|
|
2019-03-26 22:51:25 +01:00
|
|
|
python_test() {
|
|
|
|
virtx pytest -m "not (dicomtest or fsltest)" --verbose || die
|
|
|
|
}
|