commit: ab5fb3e71f8ff3a9d9166077b42e509c7e4c8239 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Wed Jan 6 10:37:02 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Wed Jan 6 10:37:47 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ab5fb3e7
sci-libs/nibabel: version bump, fix doc building Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> sci-libs/nibabel/nibabel-3.2.1.ebuild | 36 +++++++++++++++++++++++++++++++++++ sci-libs/nibabel/nibabel-9999.ebuild | 28 +++++++++++---------------- 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/sci-libs/nibabel/nibabel-3.2.1.ebuild b/sci-libs/nibabel/nibabel-3.2.1.ebuild new file mode 100644 index 000000000..03a5f5b48 --- /dev/null +++ b/sci-libs/nibabel/nibabel-3.2.1.ebuild @@ -0,0 +1,36 @@ +# 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 + +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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dicom" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dicom? ( + sci-libs/pydicom + dev-python/pillow[${PYTHON_USEDEP}] + ) +" + +BDEPEND="test? ( + dev-python/pytest-doctestplus[${PYTHON_USEDEP}] +)" + +distutils_enable_sphinx doc/source dev-python/texext dev-python/numpydoc dev-python/matplotlib +distutils_enable_tests pytest diff --git a/sci-libs/nibabel/nibabel-9999.ebuild b/sci-libs/nibabel/nibabel-9999.ebuild index 1fa595d11..611202ad7 100644 --- a/sci-libs/nibabel/nibabel-9999.ebuild +++ b/sci-libs/nibabel/nibabel-9999.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6..9} ) +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 git-r3 @@ -15,11 +16,11 @@ EGIT_REPO_URI="https://github.com/nipy/nibabel.git" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="dicom doc test" -RESTRICT="!test? ( test )" +IUSE="dicom" RDEPEND=" dev-python/numpy[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dicom? ( @@ -27,17 +28,10 @@ RDEPEND=" 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 -} +BDEPEND="test? ( + dev-python/pytest-doctestplus[${PYTHON_USEDEP}] +)" + +distutils_enable_sphinx doc/source dev-python/texext dev-python/numpydoc dev-python/matplotlib +distutils_enable_tests pytest