1 |
commit: 1d39e474755e118738efb60eb467eefdfe25c026 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 26 17:48:24 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 26 17:48:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1d39e474 |
7 |
|
8 |
sci-biology/samri: bump python compat |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
sci-biology/samri/samri-0.5.ebuild | 21 ++++++++++----------- |
14 |
1 file changed, 10 insertions(+), 11 deletions(-) |
15 |
|
16 |
diff --git a/sci-biology/samri/samri-0.5.ebuild b/sci-biology/samri/samri-0.5.ebuild |
17 |
index 84161f65f..1633aa23f 100644 |
18 |
--- a/sci-biology/samri/samri-0.5.ebuild |
19 |
+++ b/sci-biology/samri/samri-0.5.ebuild |
20 |
@@ -1,25 +1,25 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
|
27 |
-PYTHON_COMPAT=( python3_{7..8} ) |
28 |
+PYTHON_COMPAT=( python3_{8..9} ) |
29 |
|
30 |
inherit distutils-r1 prefix |
31 |
|
32 |
DESCRIPTION="Small Animal Magnetic Resonance Imaging" |
33 |
HOMEPAGE="https://github.com/IBT-FMI/SAMRI" |
34 |
SRC_URI="https://github.com/IBT-FMI/SAMRI/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+S="${WORKDIR}/SAMRI-${PV}" |
36 |
|
37 |
LICENSE="GPL-3" |
38 |
SLOT="0" |
39 |
-IUSE="+atlases labbookdb test" |
40 |
KEYWORDS="~amd64" |
41 |
-RESTRICT="!test? ( test )" |
42 |
+IUSE="+atlases labbookdb" |
43 |
+REQUIRED_USE="test? ( atlases )" |
44 |
|
45 |
DEPEND=" |
46 |
test? ( |
47 |
- dev-python/pytest[${PYTHON_USEDEP}] |
48 |
sci-biology/samri_bidsdata |
49 |
sci-biology/samri_bindata |
50 |
) |
51 |
@@ -48,14 +48,13 @@ RDEPEND=" |
52 |
sci-biology/nilearn[${PYTHON_USEDEP}] |
53 |
" |
54 |
|
55 |
-REQUIRED_USE="test? ( atlases )" |
56 |
- |
57 |
-S="${WORKDIR}/SAMRI-${PV}" |
58 |
+distutils_enable_tests pytest |
59 |
+distutils_enable_sphinx doc/source dev-python/sphinxcontrib-napoleon |
60 |
|
61 |
src_prepare() { |
62 |
distutils-r1_src_prepare |
63 |
- sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ samri` |
64 |
- sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI /usr/ test_scripts.sh` |
65 |
+ sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ samri` || die |
66 |
+ sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI /usr/ test_scripts.sh` || die |
67 |
eprefixify $(grep -rl GENTOO_PORTAGE_EPREFIX samri/* test_scripts.sh) |
68 |
} |
69 |
|
70 |
@@ -68,5 +67,5 @@ python_test() { |
71 |
sed -i -e \ |
72 |
"/def test_bru2bids():/i@×××××××××××.skip('Removed in full test suite, as this is already tested in `test_scripts.sh`')" \ |
73 |
samri/pipelines/tests/test_repos.py || die |
74 |
- pytest -vv -k "not longtime" || die |
75 |
+ epytest -k "not longtime" |
76 |
} |