1 |
commit: 70e2057641f5a42ec3eb46de196fea112a6955d0 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Tue Jan 31 21:24:44 2023 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jan 31 21:24:44 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=70e20576 |
7 |
|
8 |
dev-python/heudiconv: new package, add 0.11.6 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
.../heudiconv/files/pynwb-2.0.0-versions.patch | 21 +++++++++ |
13 |
.../heudiconv/files/pynwb-2.1.0-versions.patch | 21 +++++++++ |
14 |
.../heudiconv/files/pynwb-2.2.0-versions.patch | 21 +++++++++ |
15 |
dev-python/heudiconv/heudiconv-0.11.6.ebuild | 51 ++++++++++++++++++++++ |
16 |
dev-python/heudiconv/metadata.xml | 16 +++++++ |
17 |
5 files changed, 130 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/heudiconv/files/pynwb-2.0.0-versions.patch b/dev-python/heudiconv/files/pynwb-2.0.0-versions.patch |
20 |
new file mode 100644 |
21 |
index 000000000..d09c50594 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/heudiconv/files/pynwb-2.0.0-versions.patch |
24 |
@@ -0,0 +1,21 @@ |
25 |
+diff --git a/setup.py b/tmp/setup.py |
26 |
+index 39e75824..f7948f64 100755 |
27 |
+--- a/setup.py |
28 |
++++ b/setup.py |
29 |
+@@ -19,11 +19,11 @@ print('found these packages:', pkgs) |
30 |
+ schema_dir = 'nwb-schema/core' |
31 |
+ |
32 |
+ reqs = [ |
33 |
+- 'h5py>=2.9,<4', |
34 |
+- 'hdmf>=3.1.1,<4', |
35 |
+- 'numpy>=1.16,<1.22', |
36 |
+- 'pandas>=1.0.5,<2', |
37 |
+- 'python-dateutil>=2.7,<3', |
38 |
++ 'h5py', |
39 |
++ 'hdmf', |
40 |
++ 'numpy', |
41 |
++ 'pandas', |
42 |
++ 'python-dateutil', |
43 |
+ 'setuptools' |
44 |
+ ] |
45 |
+ |
46 |
|
47 |
diff --git a/dev-python/heudiconv/files/pynwb-2.1.0-versions.patch b/dev-python/heudiconv/files/pynwb-2.1.0-versions.patch |
48 |
new file mode 100644 |
49 |
index 000000000..8c816d226 |
50 |
--- /dev/null |
51 |
+++ b/dev-python/heudiconv/files/pynwb-2.1.0-versions.patch |
52 |
@@ -0,0 +1,21 @@ |
53 |
+diff --git a/setup.py b/tmp/setup.py |
54 |
+index 39e75824..f7948f64 100755 |
55 |
+--- a/setup.py |
56 |
++++ b/setup.py |
57 |
+@@ -19,11 +19,11 @@ print('found these packages:', pkgs) |
58 |
+ schema_dir = 'nwb-schema/core' |
59 |
+ |
60 |
+ reqs = [ |
61 |
+- 'h5py>=2.10,<4', |
62 |
+- 'hdmf>=3.3.2,<4', |
63 |
+- 'numpy>=1.16,<1.23', |
64 |
+- 'pandas>=1.0.5,<2', |
65 |
+- 'python-dateutil>=2.7,<3', |
66 |
++ 'h5py', |
67 |
++ 'hdmf', |
68 |
++ 'numpy', |
69 |
++ 'pandas', |
70 |
++ 'python-dateutil', |
71 |
+ 'setuptools' |
72 |
+ ] |
73 |
+ |
74 |
|
75 |
diff --git a/dev-python/heudiconv/files/pynwb-2.2.0-versions.patch b/dev-python/heudiconv/files/pynwb-2.2.0-versions.patch |
76 |
new file mode 100644 |
77 |
index 000000000..6141f629a |
78 |
--- /dev/null |
79 |
+++ b/dev-python/heudiconv/files/pynwb-2.2.0-versions.patch |
80 |
@@ -0,0 +1,21 @@ |
81 |
+diff --git a/setup.py b/tmp/setup.py |
82 |
+index 39e75824..f7948f64 100755 |
83 |
+--- a/setup.py |
84 |
++++ b/setup.py |
85 |
+@@ -19,11 +19,11 @@ print('found these packages:', pkgs) |
86 |
+ schema_dir = 'nwb-schema/core' |
87 |
+ |
88 |
+ reqs = [ |
89 |
+- 'h5py>=2.10,<4', |
90 |
+- 'hdmf>=3.4.2,<4', |
91 |
+- 'numpy>=1.16,<1.24', |
92 |
+- 'pandas>=1.1.5,<2', |
93 |
+- 'python-dateutil>=2.7.3,<3', |
94 |
++ 'h5py', |
95 |
++ 'hdmf', |
96 |
++ 'numpy', |
97 |
++ 'pandas', |
98 |
++ 'python-dateutil', |
99 |
+ 'setuptools' |
100 |
+ ] |
101 |
+ |
102 |
|
103 |
diff --git a/dev-python/heudiconv/heudiconv-0.11.6.ebuild b/dev-python/heudiconv/heudiconv-0.11.6.ebuild |
104 |
new file mode 100644 |
105 |
index 000000000..6c3c6b59d |
106 |
--- /dev/null |
107 |
+++ b/dev-python/heudiconv/heudiconv-0.11.6.ebuild |
108 |
@@ -0,0 +1,51 @@ |
109 |
+# Copyright 1999-2023 Gentoo Authors |
110 |
+# Distributed under the terms of the GNU General Public License v2 |
111 |
+ |
112 |
+EAPI=8 |
113 |
+ |
114 |
+DISTUTILS_USE_PEP517=setuptools |
115 |
+PYTHON_COMPAT=( python3_10 ) |
116 |
+inherit distutils-r1 |
117 |
+ |
118 |
+DESCRIPTION="Flexible DICOM conversion to structured directory layouts" |
119 |
+HOMEPAGE=" |
120 |
+ https://github.com/nipy/heudiconv |
121 |
+ https://heudiconv.readthedocs.io/en/latest/ |
122 |
+" |
123 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
124 |
+ |
125 |
+SLOT="0" |
126 |
+LICENSE="Apache-2.0" |
127 |
+KEYWORDS="~amd64 ~x86" |
128 |
+ |
129 |
+RDEPEND=" |
130 |
+ sci-libs/nibabel[${PYTHON_USEDEP}] |
131 |
+ sci-libs/pydicom[${PYTHON_USEDEP}] |
132 |
+ sci-libs/nipype[${PYTHON_USEDEP}] |
133 |
+ sci-biology/dcmstack[${PYTHON_USEDEP}] |
134 |
+ dev-python/filelock[${PYTHON_USEDEP}] |
135 |
+ dev-python/versioningit[${PYTHON_USEDEP}] |
136 |
+ " |
137 |
+BDEPEND=" |
138 |
+ test? ( |
139 |
+ dev-python/six[${PYTHON_USEDEP}] |
140 |
+ ) |
141 |
+" |
142 |
+ |
143 |
+# Reported upstream: |
144 |
+# https://github.com/nipy/heudiconv/issues/627 |
145 |
+EPYTEST_DESELECT=( |
146 |
+ "heudiconv/tests/test_convert.py::test_b0dwi_for_fmap" |
147 |
+ "heudiconv/tests/test_dicoms.py::test_embed_dicom_and_nifti_metadata" |
148 |
+ "heudiconv/tests/test_heuristics.py::test_reproin_largely_smoke" |
149 |
+ "heudiconv/tests/test_heuristics.py::test_scans_keys_reproin" |
150 |
+ "heudiconv/tests/test_heuristics.py::test_scout_conversion" |
151 |
+ "heudiconv/tests/test_heuristics.py::test_notop[bidsoptions0]" |
152 |
+ "heudiconv/tests/test_heuristics.py::test_notop[bidsoptions1]" |
153 |
+ "heudiconv/tests/test_heuristics.py::test_phoenix_doc_conversion" |
154 |
+ "heudiconv/tests/test_main.py::test_prepare_for_datalad" |
155 |
+ "heudiconv/tests/test_main.py::test_cache" |
156 |
+ "heudiconv/tests/test_regression.py::test_grouping[merged]" |
157 |
+) |
158 |
+ |
159 |
+distutils_enable_tests pytest |
160 |
|
161 |
diff --git a/dev-python/heudiconv/metadata.xml b/dev-python/heudiconv/metadata.xml |
162 |
new file mode 100644 |
163 |
index 000000000..a98cbf459 |
164 |
--- /dev/null |
165 |
+++ b/dev-python/heudiconv/metadata.xml |
166 |
@@ -0,0 +1,16 @@ |
167 |
+<?xml version='1.0' encoding='UTF-8'?> |
168 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
169 |
+<pkgmetadata> |
170 |
+ <maintainer type="person"> |
171 |
+ <email>gentoo@×××××××.eu</email> |
172 |
+ <name>Horea Christian</name> |
173 |
+ </maintainer> |
174 |
+ <maintainer type="project"> |
175 |
+ <email>sci@g.o</email> |
176 |
+ <name>Gentoo Science Project</name> |
177 |
+ </maintainer> |
178 |
+ <upstream> |
179 |
+ <remote-id type="pypi">heudiconv</remote-id> |
180 |
+ <remote-id type="github">nipy/heudiconv</remote-id> |
181 |
+ </upstream> |
182 |
+</pkgmetadata> |