1 |
commit: a020e3fc5daa38926c05fedc5d4de784f26cc172 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Tue Jan 31 09:53:02 2023 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jan 31 09:53:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a020e3fc |
7 |
|
8 |
dev-python/neo: new package, add 0.11.0, 0.11.1 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
dev-python/neo/metadata.xml | 23 +++++++++++++++ |
13 |
dev-python/neo/neo-0.11.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++ |
14 |
dev-python/neo/neo-0.11.1.ebuild | 55 +++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 140 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/neo/metadata.xml b/dev-python/neo/metadata.xml |
18 |
new file mode 100644 |
19 |
index 000000000..5a50da2a7 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/neo/metadata.xml |
22 |
@@ -0,0 +1,23 @@ |
23 |
+<?xml version='1.0' encoding='UTF-8'?> |
24 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
25 |
+<pkgmetadata> |
26 |
+ <maintainer type="person"> |
27 |
+ <email>gentoo@×××××××.eu</email> |
28 |
+ <name>Horea Christian</name> |
29 |
+ </maintainer> |
30 |
+ <maintainer type="project"> |
31 |
+ <email>sci@g.o</email> |
32 |
+ <name>Gentoo Science Project</name> |
33 |
+ </maintainer> |
34 |
+ <longdescription lang="en"> |
35 |
+ Neo is a Python package for working with electrophysiology data in Python, |
36 |
+ together with support for reading a wide range of neurophysiology file |
37 |
+ formats, including Spike2, NeuroExplorer, AlphaOmega, Axon, Blackrock, |
38 |
+ Plexon, Tdt, and support for writing to a subset of these formats plus |
39 |
+ non-proprietary formats including HDF5. |
40 |
+ </longdescription> |
41 |
+ <upstream> |
42 |
+ <remote-id type="github">NeuralEnsemble/python-neo</remote-id> |
43 |
+ <remote-id type="pypi">neo</remote-id> |
44 |
+ </upstream> |
45 |
+</pkgmetadata> |
46 |
|
47 |
diff --git a/dev-python/neo/neo-0.11.0.ebuild b/dev-python/neo/neo-0.11.0.ebuild |
48 |
new file mode 100644 |
49 |
index 000000000..c66b2b951 |
50 |
--- /dev/null |
51 |
+++ b/dev-python/neo/neo-0.11.0.ebuild |
52 |
@@ -0,0 +1,62 @@ |
53 |
+# Copyright 2021-2023 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=8 |
57 |
+ |
58 |
+PYTHON_COMPAT=( python3_{10..10} ) |
59 |
+DISTUTILS_USE_PEP517=setuptools |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+MY_PN="python-neo" |
63 |
+ |
64 |
+DESCRIPTION="Read and represent a wide range of neurophysiology file formats in Python" |
65 |
+HOMEPAGE="https://github.com/NeuralEnsemble/python-neo" |
66 |
+SRC_URI="https://github.com/NeuralEnsemble/python-neo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="MIT" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64" |
71 |
+IUSE="test" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
75 |
+ dev-python/quantities[${PYTHON_USEDEP}] |
76 |
+" |
77 |
+BDEPEND=" |
78 |
+ test? ( |
79 |
+ ${RDEPEND} |
80 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
81 |
+ dev-python/h5py[${PYTHON_USEDEP}] |
82 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
83 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
84 |
+ dev-python/probeinterface[${PYTHON_USEDEP}] |
85 |
+ dev-python/pynwb[${PYTHON_USEDEP}] |
86 |
+ dev-python/tqdm[${PYTHON_USEDEP}] |
87 |
+ dev-vcs/datalad[${PYTHON_USEDEP}] |
88 |
+ ) |
89 |
+" |
90 |
+# Testing deps also need: |
91 |
+# igor |
92 |
+# pyedflib https://github.com/holgern/pyedflib |
93 |
+# klusta |
94 |
+# nixio |
95 |
+# sonpy |
96 |
+# ipython |
97 |
+ |
98 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
99 |
+ |
100 |
+distutils_enable_tests pytest |
101 |
+ |
102 |
+EPYTEST_DESELECT=( |
103 |
+ neo/test/utils/test_datasets.py::TestDownloadDataset::test_download_dataset |
104 |
+) |
105 |
+ |
106 |
+# Reported upstream |
107 |
+# https://github.com/NeuralEnsemble/python-neo/issues/1037 |
108 |
+python_test() { |
109 |
+ local EPYTEST_IGNORE=( |
110 |
+ neo/test/iotest/* |
111 |
+ neo/test/rawiotest/* |
112 |
+ ) |
113 |
+ epytest |
114 |
+} |
115 |
|
116 |
diff --git a/dev-python/neo/neo-0.11.1.ebuild b/dev-python/neo/neo-0.11.1.ebuild |
117 |
new file mode 100644 |
118 |
index 000000000..c7a36d0e3 |
119 |
--- /dev/null |
120 |
+++ b/dev-python/neo/neo-0.11.1.ebuild |
121 |
@@ -0,0 +1,55 @@ |
122 |
+# Copyright 2021-2023 Gentoo Authors |
123 |
+# Distributed under the terms of the GNU General Public License v2 |
124 |
+ |
125 |
+EAPI=8 |
126 |
+ |
127 |
+PYTHON_COMPAT=( python3_{10..10} ) |
128 |
+DISTUTILS_USE_PEP517=setuptools |
129 |
+inherit distutils-r1 |
130 |
+ |
131 |
+DESCRIPTION="Read and represent a wide range of neurophysiology file formats in Python" |
132 |
+HOMEPAGE="https://github.com/NeuralEnsemble/python-neo" |
133 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
134 |
+#SRC_URI="https://github.com/NeuralEnsemble/python-neo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
135 |
+ |
136 |
+LICENSE="MIT" |
137 |
+SLOT="0" |
138 |
+KEYWORDS="~amd64" |
139 |
+IUSE="test" |
140 |
+ |
141 |
+RDEPEND=" |
142 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
143 |
+ dev-python/quantities[${PYTHON_USEDEP}] |
144 |
+" |
145 |
+BDEPEND=" |
146 |
+ test? ( |
147 |
+ ${RDEPEND} |
148 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
149 |
+ dev-python/h5py[${PYTHON_USEDEP}] |
150 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
151 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
152 |
+ dev-python/probeinterface[${PYTHON_USEDEP}] |
153 |
+ dev-python/pynwb[${PYTHON_USEDEP}] |
154 |
+ dev-python/tqdm[${PYTHON_USEDEP}] |
155 |
+ dev-vcs/datalad[${PYTHON_USEDEP}] |
156 |
+ ) |
157 |
+" |
158 |
+# Testing deps also need: |
159 |
+# igor |
160 |
+# pyedflib https://github.com/holgern/pyedflib |
161 |
+# klusta |
162 |
+# nixio |
163 |
+# sonpy |
164 |
+# ipython |
165 |
+ |
166 |
+distutils_enable_tests pytest |
167 |
+ |
168 |
+# Reported upstream |
169 |
+# https://github.com/NeuralEnsemble/python-neo/issues/1037 |
170 |
+python_test() { |
171 |
+ local EPYTEST_IGNORE=( |
172 |
+ neo/test/iotest/* |
173 |
+ neo/test/rawiotest/* |
174 |
+ ) |
175 |
+ epytest |
176 |
+} |