1 |
commit: 8a9e478b567b41ec475344acf3f9e3f7d18e765a |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Sun Sep 27 09:27:43 2020 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Sep 27 09:27:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8a9e478b |
7 |
|
8 |
sci-biology/samri: version bump 0.5 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
sci-biology/samri/samri-0.5.ebuild | 71 ++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/samri/samri-0.5.ebuild b/sci-biology/samri/samri-0.5.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..24912c9c9 |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/samri/samri-0.5.ebuild |
21 |
@@ -0,0 +1,71 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_7 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Small Animal Magnetic Resonance Imaging" |
32 |
+HOMEPAGE="https://github.com/IBT-FMI/SAMRI" |
33 |
+SRC_URI="https://github.com/IBT-FMI/SAMRI/archive/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+IUSE="+atlases labbookdb test" |
38 |
+KEYWORDS="~amd64" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ test? ( |
42 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
43 |
+ sci-biology/samri_bidsdata |
44 |
+ sci-biology/samri_bindata |
45 |
+ ) |
46 |
+ " |
47 |
+RDEPEND=" |
48 |
+ dev-python/argh[${PYTHON_USEDEP}] |
49 |
+ dev-python/joblib[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/matplotlib-2.0.2[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}] |
52 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
53 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
54 |
+ dev-python/seaborn[${PYTHON_USEDEP}] |
55 |
+ dev-python/statsmodels[${PYTHON_USEDEP}] |
56 |
+ >=media-gfx/blender-2.83.4 |
57 |
+ >=sci-biology/fsl-5.0.9 |
58 |
+ sci-biology/bru2nii |
59 |
+ atlases? ( sci-biology/mouse-brain-atlases ) |
60 |
+ labbookdb? ( sci-libs/labbookdb[${PYTHON_USEDEP}] ) |
61 |
+ sci-libs/nibabel[${PYTHON_USEDEP}] |
62 |
+ >=sci-libs/nipy-0.4.1[${PYTHON_USEDEP}] |
63 |
+ >=sci-libs/nipype-1.0.0[${PYTHON_USEDEP}] |
64 |
+ sci-libs/pybids[${PYTHON_USEDEP}] |
65 |
+ sci-libs/scikits_image[${PYTHON_USEDEP}] |
66 |
+ sci-biology/ants |
67 |
+ sci-biology/afni |
68 |
+ sci-biology/nilearn[${PYTHON_USEDEP}] |
69 |
+" |
70 |
+ |
71 |
+REQUIRED_USE="test? ( atlases )" |
72 |
+ |
73 |
+S="${WORKDIR}/SAMRI-${PV}" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ distutils-r1_src_prepare |
77 |
+ sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ samri` |
78 |
+ sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI /usr/ test_scripts.sh` |
79 |
+ eprefixify $(grep -rl GENTOO_PORTAGE_EPREFIX samri/* test_scripts.sh) |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ distutils_install_for_testing |
84 |
+ export MPLBACKEND="agg" |
85 |
+ export PATH=${TEST_DIR}/scripts:$PATH |
86 |
+ export PYTHONIOENCODING=utf-8 |
87 |
+ ./test_scripts.sh || die "Test scripts failed." |
88 |
+ sed -i -e \ |
89 |
+ "/def test_bru2bids():/i@×××××××××××.skip('Removed in full test suite, as this is already tested in `test_scripts.sh`')" \ |
90 |
+ samri/pipelines/tests/test_repos.py || die |
91 |
+ pytest -vv -k "not longtime" || die |
92 |
+} |