commit: ac5a5ff03452db2dbcaff780a74fde8e5731d7de
Author: Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Mon Jul 11 14:39:00 2022 +0000
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Mon Jul 11 14:39:00 2022 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ac5a5ff0
sci-libs/nipy: EAPI/PYTHON_COMPAT bump and restricted tests
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Horea Christian <chr <AT> chymera.eu>
sci-libs/nipy/nipy-0.4.2.ebuild | 10 ++++----
sci-libs/nipy/nipy-0.5.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 4 deletions(-)
diff --git a/sci-libs/nipy/nipy-0.4.2.ebuild b/sci-libs/nipy/nipy-0.4.2.ebuild
index c20d904f5..3b483638f 100644
--- a/sci-libs/nipy/nipy-0.4.2.ebuild
+++ b/sci-libs/nipy/nipy-0.4.2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 flag-o-matic
+inherit distutils-r1
DESCRIPTION="Neuroimaging tools for Python"
HOMEPAGE="https://nipy.org/"
@@ -15,6 +15,8 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
+RESTRICT="test"
+# reported upstream: https://github.com/nipy/nipy/issues/493
RDEPEND="
dev-python/prov[${PYTHON_USEDEP}]
diff --git a/sci-libs/nipy/nipy-0.5.0.ebuild b/sci-libs/nipy/nipy-0.5.0.ebuild
new file mode 100644
index 000000000..81a462c96
--- /dev/null
+++ b/sci-libs/nipy/nipy-0.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Neuroimaging tools for Python"
+HOMEPAGE="https://nipy.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test"
+# reported upstream: https://github.com/nipy/nipy/issues/493
+
+RDEPEND="
+ dev-python/scipy[${PYTHON_USEDEP}]
+ dev-python/sympy[${PYTHON_USEDEP}]
+ >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ "
+DEPEND=""
+
+distutils_enable_tests nose
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ # bug #397605
+ [[ ${CHOST} == *-darwin* ]] \
+ && append-ldflags -bundle "-undefined dynamic_lookup" \
+ || append-ldflags -shared
+
+ # nipy uses the horrible numpy.distutils automagic
+}
+
+#python_test() {
+# distutils-r1_install_for_testing
+# cp nipy/testing/*.nii.gz "${BUILD_DIR}/lib/nipy/testing/"
+# cp nipy/modalities/fmri/tests/*.{mat,npz,txt}
"${BUILD_DIR}/lib/nipy/modalities/fmri/tests/"
+# cp nipy/algorithms/statistics/models/tests/test_data.bin
"${BUILD_DIR}/lib/nipy/algorithms/statistics/models/tests"
+# cp nipy/labs/spatial_models/tests/some_blobs.nii
"${BUILD_DIR}/lib/nipy/labs/spatial_models/tests/some_blobs.nii"
+# mkdir "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/"
+# cp nipy/algorithms/diagnostics/tests/data/tsdiff_results.mat
"${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/"
+# cd "${BUILD_DIR}" || die
+# echo "backend : agg" > matplotlibrc
+# nosetests || die
+#}