blob: b21c2fd8eec331dd414c586ae12ccc12c5592f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Create NWB files from proprietary formats."
HOMEPAGE="https://github.com/catalystneuro/neuroconv"
SRC_URI="https://github.com/catalystneuro/neuroconv/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ecephys +icephys +ophys"
RDEPEND="
dev-python/docstring-parser[${PYTHON_USEDEP}]
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/hdmf-zarr[${PYTHON_USEDEP}]
dev-python/hdmf[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/nwbinspector[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/parse[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
ecephys? (
dev-python/spikeinterface[${PYTHON_USEDEP}]
)
icephys? (
dev-python/neo[${PYTHON_USEDEP}]
)
ophys? (
sci-biology/roiextractors[${PYTHON_USEDEP}]
)
"
BDEPEND="
test? (
dev-python/parameterized[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
# Reported upstream:
# https://github.com/catalystneuro/neuroconv/issues/785
EPYTEST_DESELECT=(
tests/test_ecephys/test_mock_recording_interface.py::TestMockRecordingInterface::test_conversion_as_lone_interface
)
python_test() {
# Additional tests require complex data getting infrastructure, ophys tests still have issues:
# https://github.com/catalystneuro/neuroconv/issues/305
local my_tests=( "tests/test_minimal" )
use ecephys && my_tests+=( "tests/test_ecephys" )
#use ophys && my_tests+=( "tests/test_ophys" )
epytest ${my_tests[*]// /|}
}
|