Install this version:
emerge -a =dev-python/h5pyd-1.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/h5pyd-1.0.0
Or alternatively:
emerge --autounmask-write -a =dev-python/h5pyd-1.0.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
H5PY_EXPV="3.16.0"
H5PY_EXP_URI="https://raw.githubusercontent.com/h5py/h5py/${H5PY_EXPV}/examples"
inherit distutils-r1
DESCRIPTION="h5py distributed - Python client library for HDF Rest API"
HOMEPAGE="https://github.com/HDFGroup/h5pyd"
SRC_URI="https://github.com/HDFGroup/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
doc? (
${H5PY_EXP_URI}/bytesio.py -> h5py-${H5PY_EXPV}-e-bytesio.py
${H5PY_EXP_URI}/swmr_inotify_example.py -> h5py-${H5PY_EXPV}-e-swmr_inotify_example.py
)
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aws azure examples google hdf5"
RESTRICT="test" # need HSDS end point for testing
RDEPEND=">=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
>=dev-python/h5json-2.0.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/requests-unixsocket[${PYTHON_USEDEP}]
aws? ( dev-python/s3fs[${PYTHON_USEDEP}] )
azure? (
dev-python/adal[${PYTHON_USEDEP}]
dev-python/msrestazure[${PYTHON_USEDEP}]
)
google? (
dev-python/google-api-python-client[${PYTHON_USEDEP}]
dev-python/google-auth[${PYTHON_USEDEP}]
dev-python/google-auth-oauthlib[${PYTHON_USEDEP}]
)
hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/furo
python_prepare_all() {
use doc && { for epy in "${DISTDIR}"/*-e-*; do { cp ${epy} "${S}"/examples/${epy##*-e-} || die ; } ; done ; \
sed -i -e "/GH/s/GH/GH\%s/" -e "/PR/s/PR/PR\%s/" docs/conf.py || die ; }
use test && { sed -i -e 's:../../::' test/apps/test_hsinfo.py || die ; }
distutils-r1_python_prepare_all
}
python_install_all() {
if use examples; then
docompress -x "/usr/share/doc/${PF}/examples"
docinto examples
dodoc -r examples/.
fi
distutils-r1_python_install_all
}
python_test() {
mkdir -p "${T}"/.test || die
H5PYD_TEST_FOLDER="${T}/.test" epytest
}
Manage flags for this package:
euse -i <flag> -p dev-python/h5pyd |
euse -E <flag> -p dev-python/h5pyd |
euse -D <flag> -p dev-python/h5pyd
>=dev-python/numpy-2.0.0[] >=dev-python/h5json-2.0.0[] dev-python/pytz[] dev-python/packaging[] dev-python/requests-unixsocket[] aws? ( dev-python/s3fs[] ) azure? ( dev-python/adal[] dev-python/msrestazure[] ) google? ( dev-python/google-api-python-client[] dev-python/google-auth[] dev-python/google-auth-oauthlib[] ) hdf5? ( dev-python/h5py[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | h5py-3.16.0-e-bytesio.py | 380 bytes | https://raw.githubusercontent.com/h5py/h5py/3.16.0/examples/bytesio.py |
| DIST | h5py-3.16.0-e-swmr_inotify_example.py | 2673 bytes | https://raw.githubusercontent.com/h5py/h5py/3.16.0/examples/swmr_inotify_example.py |
| DIST | h5pyd-1.0.0.gh.tar.gz | 265587 bytes | https://github.com/HDFGroup/h5pyd/archive/v1.0.0.tar.gz |