1 |
commit: 299f323d9a54d449992ea9156fc0004d15cf934b |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Wed Nov 2 21:09:45 2022 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Nov 2 21:09:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=299f323d |
7 |
|
8 |
dev-python/pynwb: add 2.2.0 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
dev-python/pynwb/files/pynwb-2.2.0-versions.patch | 21 +++++++++ |
13 |
dev-python/pynwb/pynwb-2.2.0.ebuild | 57 +++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pynwb/files/pynwb-2.2.0-versions.patch b/dev-python/pynwb/files/pynwb-2.2.0-versions.patch |
17 |
new file mode 100644 |
18 |
index 000000000..6141f629a |
19 |
--- /dev/null |
20 |
+++ b/dev-python/pynwb/files/pynwb-2.2.0-versions.patch |
21 |
@@ -0,0 +1,21 @@ |
22 |
+diff --git a/setup.py b/tmp/setup.py |
23 |
+index 39e75824..f7948f64 100755 |
24 |
+--- a/setup.py |
25 |
++++ b/setup.py |
26 |
+@@ -19,11 +19,11 @@ print('found these packages:', pkgs) |
27 |
+ schema_dir = 'nwb-schema/core' |
28 |
+ |
29 |
+ reqs = [ |
30 |
+- 'h5py>=2.10,<4', |
31 |
+- 'hdmf>=3.4.2,<4', |
32 |
+- 'numpy>=1.16,<1.24', |
33 |
+- 'pandas>=1.1.5,<2', |
34 |
+- 'python-dateutil>=2.7.3,<3', |
35 |
++ 'h5py', |
36 |
++ 'hdmf', |
37 |
++ 'numpy', |
38 |
++ 'pandas', |
39 |
++ 'python-dateutil', |
40 |
+ 'setuptools' |
41 |
+ ] |
42 |
+ |
43 |
|
44 |
diff --git a/dev-python/pynwb/pynwb-2.2.0.ebuild b/dev-python/pynwb/pynwb-2.2.0.ebuild |
45 |
new file mode 100644 |
46 |
index 000000000..6ea595a8f |
47 |
--- /dev/null |
48 |
+++ b/dev-python/pynwb/pynwb-2.2.0.ebuild |
49 |
@@ -0,0 +1,57 @@ |
50 |
+# Copyright 1999-2022 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=8 |
54 |
+ |
55 |
+DISTUTILS_USE_PEP517=setuptools |
56 |
+PYTHON_COMPAT=( python3_{8..10} ) |
57 |
+inherit distutils-r1 |
58 |
+ |
59 |
+DESCRIPTION="A Python API for working with Neurodata stored in the NWB Format " |
60 |
+HOMEPAGE="https://github.com/NeurodataWithoutBorders/pynwb" |
61 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
62 |
+ |
63 |
+SLOT="0" |
64 |
+LICENSE="BSD" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ sci-libs/hdf5[ros3(-)] |
69 |
+ >=dev-python/hdmf-3.3.2[${PYTHON_USEDEP}] |
70 |
+ dev-python/h5py[${PYTHON_USEDEP}] |
71 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
72 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
73 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
74 |
+ " |
75 |
+BDEPEND="" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}/${P}-versions.patch" |
79 |
+ ) |
80 |
+ |
81 |
+EPYTEST_DESELECT=( |
82 |
+ # Reported upsream: |
83 |
+ # https://github.com/NeurodataWithoutBorders/pynwb/issues/1580 |
84 |
+ tests/back_compat/test_read.py::TestReadOldVersions::test_read |
85 |
+ tests/back_compat/test_read.py::TestReadOldVersions::test_read_imageseries_non_external_format |
86 |
+ tests/back_compat/test_read.py::TestReadOldVersions::test_read_imageseries_nonmatch_starting_frame |
87 |
+ tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_with_data |
88 |
+ tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_with_data_construct_mode |
89 |
+ tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_with_incorrect_format |
90 |
+ tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_with_incorrect_format_construct_mode |
91 |
+ tests/unit/test_image.py::ImageSeriesConstructor::test_external_file_with_incorrect_starting_frame |
92 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached |
93 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_bad_ns |
94 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_core |
95 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension |
96 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension_pass_ns |
97 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_hdmf_common |
98 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_ignore |
99 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_invalid |
100 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_core |
101 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_extension |
102 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache |
103 |
+ tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache_bad_ns |
104 |
+) |
105 |
+ |
106 |
+distutils_enable_tests pytest |