1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Horea Christian 0b35028486
sci-biology/neuroconv: new package, add 0.2.4_p20230413
Signed-off-by: Horea Christian <chr@chymera.eu>
2023-05-10 05:20:02 -04:00
Horea Christian 591f31f421
dev-python/subprocess-tee: PYTHON_COMPAT and code style
Signed-off-by: Horea Christian <chr@chymera.eu>
2023-05-10 05:12:13 -04:00
4 changed files with 92 additions and 10 deletions

View File

@ -1,9 +1,9 @@
# Copyright 2020 Gentoo Authors
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="An drop-in alternative to subprocess.run that captures the output
@ -12,19 +12,19 @@ HOMEPAGE="https://github.com/pycontribs/subprocess-tee"
#SRC_URI="https://github.com/pycontribs/${PN}/archive/${PV}.tar.gz"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT License"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
BDEPEND=""

View File

@ -0,0 +1 @@
DIST neuroconv-0.2.4_p20230413.gh.tar.gz 912786 BLAKE2B 1552db2d3968f1c58caef3f3812087aa6307d37c253c2e4c42401fe97c3ecfe7d22835d8db6122dd0bf7ba41f101fb1be0c24d1fd29e6f9eef3d2e250c9a722a SHA512 4b5724d368e81dbfd87271eeb4b83312cce616c02dce6ac35d7a7094de973672b26437b3604b5178609d085e19817b7fbfb9fc151b165d9cde74e8059bfae0e1

View File

@ -0,0 +1,21 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@chymera.eu</email>
<name>Horea Christian</name>
</maintainer>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<use>
<flag name="ecephys">Extracellular electrophysiology interfaces</flag>
<flag name="icephys">Intracellular electrophysiology interfaces</flag>
<flag name="ophys">Optical physiology interfaces</flag>
</use>
<upstream>
<remote-id type="github">catalystneuro/roiextractors</remote-id>
<remote-id type="pypi">roiextractors</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,60 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
P_HASH="924e41a917f38222f0b8c51ba5bdff13485b8a03"
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/${P_HASH}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ecephys +icephys +ophys"
RDEPEND="
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/hdmf[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-vcs/dandi-cli[${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}]
)
"
S="${WORKDIR}/${PN}-${P_HASH}"
distutils_enable_tests pytest
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[*]// /|}
}