commit:     a020e3fc5daa38926c05fedc5d4de784f26cc172
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Tue Jan 31 09:53:02 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Tue Jan 31 09:53:02 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a020e3fc

dev-python/neo: new package, add 0.11.0, 0.11.1

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-python/neo/metadata.xml      | 23 +++++++++++++++
 dev-python/neo/neo-0.11.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++++++
 dev-python/neo/neo-0.11.1.ebuild | 55 +++++++++++++++++++++++++++++++++++
 3 files changed, 140 insertions(+)

diff --git a/dev-python/neo/metadata.xml b/dev-python/neo/metadata.xml
new file mode 100644
index 000000000..5a50da2a7
--- /dev/null
+++ b/dev-python/neo/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <longdescription lang="en">
+               Neo is a Python package for working with electrophysiology data 
in Python,
+               together with support for reading a wide range of 
neurophysiology file
+               formats, including Spike2, NeuroExplorer, AlphaOmega, Axon, 
Blackrock,
+               Plexon, Tdt, and support for writing to a subset of these 
formats plus
+               non-proprietary formats including HDF5.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">NeuralEnsemble/python-neo</remote-id>
+               <remote-id type="pypi">neo</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/neo/neo-0.11.0.ebuild b/dev-python/neo/neo-0.11.0.ebuild
new file mode 100644
index 000000000..c66b2b951
--- /dev/null
+++ b/dev-python/neo/neo-0.11.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..10} )
+DISTUTILS_USE_PEP517=setuptools
+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
+
+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
+}

diff --git a/dev-python/neo/neo-0.11.1.ebuild b/dev-python/neo/neo-0.11.1.ebuild
new file mode 100644
index 000000000..c7a36d0e3
--- /dev/null
+++ b/dev-python/neo/neo-0.11.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..10} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="Read and represent a wide range of neurophysiology file formats 
in Python"
+HOMEPAGE="https://github.com/NeuralEnsemble/python-neo";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+#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
+
+distutils_enable_tests pytest
+
+# Reported upstream
+# https://github.com/NeuralEnsemble/python-neo/issues/1037
+python_test() {
+       local EPYTEST_IGNORE=(
+               neo/test/iotest/*
+               neo/test/rawiotest/*
+       )
+       epytest
+}

Reply via email to