1 |
commit: 0e1f46a60149e2805e3c5287484a0e94487df0fd |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Mon Jan 30 10:35:02 2023 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jan 30 10:35:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0e1f46a6 |
7 |
|
8 |
sci-libs/nipy: add 0.5.1_pre20230103 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild | 52 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 52 insertions(+) |
14 |
|
15 |
diff --git a/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild b/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..22c5bbde0 |
18 |
--- /dev/null |
19 |
+++ b/sci-libs/nipy/nipy-0.5.1_pre20230103.ebuild |
20 |
@@ -0,0 +1,52 @@ |
21 |
+# Copyright 1999-2023 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_10 ) |
27 |
+ |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+MY_HASH="35a5f5205ba2aa54f1f0524564a6f1f8dafb237f" |
31 |
+ |
32 |
+DESCRIPTION="Neuroimaging tools for Python" |
33 |
+HOMEPAGE="https://nipy.org/" |
34 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_HASH}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="BSD" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
43 |
+ dev-python/sympy[${PYTHON_USEDEP}] |
44 |
+ sci-libs/nibabel[${PYTHON_USEDEP}] |
45 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
46 |
+ " |
47 |
+DEPEND="" |
48 |
+ |
49 |
+S="${WORKDIR}/${PN}-${MY_HASH}" |
50 |
+ |
51 |
+python_prepare_all() { |
52 |
+ distutils-r1_python_prepare_all |
53 |
+ # bug #397605 |
54 |
+ [[ ${CHOST} == *-darwin* ]] \ |
55 |
+ && append-ldflags -bundle "-undefined dynamic_lookup" \ |
56 |
+ || append-ldflags -shared |
57 |
+ |
58 |
+ # nipy uses the horrible numpy.distutils automagic |
59 |
+} |
60 |
+ |
61 |
+#python_test() { |
62 |
+# distutils-r1_install_for_testing |
63 |
+# cp nipy/testing/*.nii.gz "${BUILD_DIR}/lib/nipy/testing/" |
64 |
+# cp nipy/modalities/fmri/tests/*.{mat,npz,txt} "${BUILD_DIR}/lib/nipy/modalities/fmri/tests/" |
65 |
+# cp nipy/algorithms/statistics/models/tests/test_data.bin "${BUILD_DIR}/lib/nipy/algorithms/statistics/models/tests" |
66 |
+# cp nipy/labs/spatial_models/tests/some_blobs.nii "${BUILD_DIR}/lib/nipy/labs/spatial_models/tests/some_blobs.nii" |
67 |
+# mkdir "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" |
68 |
+# cp nipy/algorithms/diagnostics/tests/data/tsdiff_results.mat "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" |
69 |
+# cd "${BUILD_DIR}" || die |
70 |
+# echo "backend : agg" > matplotlibrc |
71 |
+# nosetests || die |
72 |
+#} |