commit: 9fb36b6a13413ad351f954bc1733351af4d64b79 Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Sun Nov 10 12:20:25 2019 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Sun Nov 10 12:20:25 2019 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9fb36b6a
sci-libs/nibabel: version bump 2.5.1 with added test suite support Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Horea Christian <chr <AT> chymera.eu> sci-libs/nibabel/metadata.xml | 12 +++++----- sci-libs/nibabel/nibabel-2.5.1.ebuild | 42 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/sci-libs/nibabel/metadata.xml b/sci-libs/nibabel/metadata.xml index 59e566e2d..66f8b64ec 100644 --- a/sci-libs/nibabel/metadata.xml +++ b/sci-libs/nibabel/metadata.xml @@ -10,12 +10,12 @@ <name>Gentoo Science Project</name> </maintainer> <longdescription lang="en"> -The package provides read and write access to some common medical and -neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2), GIFTI, -NIfTI1, MINC, MGH and ECAT as well as PAR/REC. It can read and write Freesurfer -geometry, and read Freesurfer morphometry and annotation files. There is some -very limited support for DICOM. NiBabel is the successor of PyNIfTI. -</longdescription> + The package provides read and write access to some common medical and + neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2), GIFTI, + NIfTI1, MINC, MGH and ECAT as well as PAR/REC. It can read and write Freesurfer + geometry, and read Freesurfer morphometry and annotation files. There is some + very limited support for DICOM. NiBabel is the successor of PyNIfTI. + </longdescription> <use> <flag name="dicom">Adds limited read support for the DICOM imaging format.</flag> </use> diff --git a/sci-libs/nibabel/nibabel-2.5.1.ebuild b/sci-libs/nibabel/nibabel-2.5.1.ebuild new file mode 100644 index 000000000..a76565117 --- /dev/null +++ b/sci-libs/nibabel/nibabel-2.5.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 + +DESCRIPTION="Access a cacophony of neuro-imaging file formats" +HOMEPAGE="http://nipy.org/nibabel/" +SRC_URI="https://github.com/nipy/nibabel/archive/${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" + +LICENSE="MIT" +SLOT="0" +IUSE="dicom doc test" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dicom? ( + sci-libs/pydicom[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + ) +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +" + +python_test() { + cd "${BUILD_DIR}" || die + echo "backend: Agg" > matplotlibrc + MPLCONFIGDIR=. nosetests || die +}