2023-01-31 10:48:21 +01:00
|
|
|
# Copyright 2021-2023 Gentoo Authors
|
2022-10-08 01:11:37 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-01-31 10:48:21 +01:00
|
|
|
PYTHON_COMPAT=( python3_{10..10} )
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2022-10-08 01:11:37 +02:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
MY_PN="python-neo"
|
|
|
|
|
|
|
|
DESCRIPTION="Read and represent a wide range of neurophysiology file formats in Python"
|
|
|
|
HOMEPAGE="https://github.com/NeuralEnsemble/python-neo"
|
|
|
|
SRC_URI="https://github.com/NeuralEnsemble/python-neo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
|
|
dev-python/quantities[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
BDEPEND="
|
|
|
|
test? (
|
|
|
|
${RDEPEND}
|
|
|
|
dev-python/scipy[${PYTHON_USEDEP}]
|
|
|
|
dev-python/h5py[${PYTHON_USEDEP}]
|
|
|
|
dev-python/matplotlib[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pillow[${PYTHON_USEDEP}]
|
|
|
|
dev-python/probeinterface[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pynwb[${PYTHON_USEDEP}]
|
|
|
|
dev-python/tqdm[${PYTHON_USEDEP}]
|
|
|
|
dev-vcs/datalad[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
# Testing deps also need:
|
|
|
|
# igor
|
|
|
|
# pyedflib https://github.com/holgern/pyedflib
|
|
|
|
# klusta
|
|
|
|
# nixio
|
|
|
|
# sonpy
|
|
|
|
# ipython
|
|
|
|
|
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
2023-01-31 10:48:21 +01:00
|
|
|
|
|
|
|
EPYTEST_DESELECT=(
|
|
|
|
neo/test/utils/test_datasets.py::TestDownloadDataset::test_download_dataset
|
|
|
|
)
|
|
|
|
|
|
|
|
# Reported upstream
|
|
|
|
# https://github.com/NeuralEnsemble/python-neo/issues/1037
|
|
|
|
python_test() {
|
|
|
|
local EPYTEST_IGNORE=(
|
|
|
|
neo/test/iotest/*
|
|
|
|
neo/test/rawiotest/*
|
|
|
|
)
|
|
|
|
epytest
|
|
|
|
}
|