aboutsummaryrefslogtreecommitdiff
blob: ed427ded21979f1f32c0a938dd07a67db7f4570f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7,8} )

inherit distutils-r1 virtualx

DESCRIPTION="The FSL Python Library"
HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fslpy"
SRC_URI="https://github.com/pauldmccarthy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

DEPEND="
	test? (
		dev-python/pytest[${PYTHON_USEDEP}]
	)
	dev-python/setuptools[${PYTHON_USEDEP}]
"
RDEPEND="
	dev-python/h5py[${PYTHON_USEDEP}]
	dev-python/indexed_gzip[${PYTHON_USEDEP}]
	=dev-python/numpy-1*[${PYTHON_USEDEP}]
	dev-python/pillow[${PYTHON_USEDEP}]
	=dev-python/six-1*[${PYTHON_USEDEP}]
	dev-python/trimesh[${PYTHON_USEDEP}]
	=dev-python/wxpython-4*[${PYTHON_USEDEP}]
	sci-libs/rtree[${PYTHON_USEDEP}]
	>=sci-libs/nibabel-2.3.1[${PYTHON_USEDEP}]
	dev-python/scipy[${PYTHON_USEDEP}]
"

PATCHES=( "${FILESDIR}/fslpy-2.7.0-coverage.patch" )

python_test() {
	virtx pytest --niters=50 -m "not (dicomtest or longtest or fsltest)" --verbose || die
}