aboutsummaryrefslogtreecommitdiff
blob: 59e17f0cf5b7dc872bd1e7eead760d2bbe606cd0 (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
43
44
45
46
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend

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"

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}]
	!<sci-biology/fsl-6.0.4
"

DEPEND="
	!<sci-biology/fsl-6.0.4
"

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

distutils_enable_tests pytest

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