| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.0.15 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 optfeature pypi
DESCRIPTION="Hierarchical tree-like data structures for xarray"
HOMEPAGE="https://xarray-datatree.readthedocs.io"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-python/xarray-2023.12.0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
"
BDEPEND="dev-python/check-manifest[${PYTHON_USEDEP}]
>=dev-python/setuptools-scm-7.0[${PYTHON_USEDEP}]
test? (
dev-python/h5netcdf[${PYTHON_USEDEP}]
dev-python/netcdf4[${PYTHON_USEDEP}]
<dev-python/zarr-3[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
distutils_enable_sphinx docs/source dev-python/sphinx-autosummary-accessors \
dev-python/sphinx-copybutton \
dev-python/sphinx-book-theme \
dev-python/sphinxcontrib-srclinks \
dev-python/sphinxext-opengraph \
dev-python/nbsphinx \
dev-python/ipython
python_prepare_all() {
sed -i "/build-system/a build-backend = \"setuptools.build_meta\"" pyproject.toml || die
sed -i -e "/xarray.core.merge/s:core:structure:g" -e "s/HybridMappingProxy/FilteredMapping/g" datatree/datatree.py || die
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "allow file I/O" "dev-python/h5netcdf dev-python/netcdf4 dev-python/zarr"
}
>=dev-python/xarray-2023.12.0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/check-manifest[${PYTHON_USEDEP}]
>=dev-python/setuptools-scm-7.0[${PYTHON_USEDEP}]
test? (
dev-python/h5netcdf[${PYTHON_USEDEP}]
dev-python/netcdf4[${PYTHON_USEDEP}]
<dev-python/zarr-3[${PYTHON_USEDEP}]
)