commit:     11e20960ab3fda75eddcb5d7efca8c7708098d31
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Wed Feb 21 01:17:24 2024 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Wed Feb 21 01:17:24 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=11e20960

sci-libs/nipy: version bump, removed deprecated version

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild | 52 -----------------------------
 sci-libs/nipy/nipy-0.6.0.ebuild             | 37 ++++++++++++++++++++
 2 files changed, 37 insertions(+), 52 deletions(-)

diff --git a/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild 
b/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild
deleted file mode 100644
index 25bdee0b8..000000000
--- a/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1
-
-MY_HASH="35a5f5205ba2aa54f1f0524564a6f1f8dafb237f"
-
-DESCRIPTION="Neuroimaging tools for Python"
-HOMEPAGE="https://nipy.org/";
-SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_HASH}.tar.gz -> 
${P}.gh.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="
-       dev-python/scipy[${PYTHON_USEDEP}]
-       dev-python/sympy[${PYTHON_USEDEP}]
-       sci-libs/nibabel[${PYTHON_USEDEP}]
-       dev-python/numpy[${PYTHON_USEDEP}]
-       "
-DEPEND=""
-
-S="${WORKDIR}/${PN}-${MY_HASH}"
-
-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
-#}

diff --git a/sci-libs/nipy/nipy-0.6.0.ebuild b/sci-libs/nipy/nipy-0.6.0.ebuild
new file mode 100644
index 000000000..8f8ea83e8
--- /dev/null
+++ b/sci-libs/nipy/nipy-0.6.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=meson-python
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_EXT=1
+
+inherit distutils-r1
+
+DESCRIPTION="Neuroimaging tools for Python"
+HOMEPAGE="https://nipy.org/";
+SRC_URI="https://github.com/nipy/nipy/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# Test data unavailable:
+# https://github.com/nipy/nipy/issues/561#event-11866547632
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/scipy[${PYTHON_USEDEP}]
+       dev-python/sympy[${PYTHON_USEDEP}]
+       sci-libs/nibabel[${PYTHON_USEDEP}]
+       dev-python/numpy[${PYTHON_USEDEP}]
+       "
+DEPEND=""
+
+distutils_enable_tests pytest
+
+python_test() {
+       rm -rf nipy || die
+       epytest
+}

Reply via email to