Install this version:
emerge -a =dev-python/zarr-3.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/zarr-3.2.1
Or alternatively:
emerge --autounmask-write -a =dev-python/zarr-3.2.1
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO=https://github.com/zarr-developers/zarr-python
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="An implementation of chunked, compressed, N-dimensional arrays for Python"
HOMEPAGE="http://zarr.readthedocs.io"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cli examples optional remote"
RDEPEND=">=dev-python/donfig-0.8[${PYTHON_USEDEP}]
>=dev-python/google-crc32c-0.14[${PYTHON_USEDEP}]
>=dev-python/numpy-2[${PYTHON_USEDEP}]
>=dev-python/numcodecs-0.14[${PYTHON_USEDEP}]
>=dev-python/packaging-22.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.13[${PYTHON_USEDEP}]
cli? ( dev-python/typer[${PYTHON_USEDEP}] )
optional? ( dev-python/universal-pathlib[${PYTHON_USEDEP}] )
remote? ( >=dev-python/fsspec-2023.10.0[${PYTHON_USEDEP}] )
"
BDEPEND="dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/flask-cors[${PYTHON_USEDEP}]
dev-python/moto[${PYTHON_USEDEP}]
dev-python/numpydoc[${PYTHON_USEDEP}]
dev-python/s3fs[${PYTHON_USEDEP}]
dev-python/tomlkit[${PYTHON_USEDEP}]
dev-python/typer[${PYTHON_USEDEP}]
dev-python/universal-pathlib[${PYTHON_USEDEP}]
dev-libs/zfp[python]
)
"
EPYTEST_PLUGINS=( hypothesis pytest-{asyncio,benchmark,examples} )
distutils_enable_tests pytest
#distutils_enable_sphinx docs dev-python/numpydoc \
# dev-python/sphinx-autoapi \
# dev-python/sphinx-copybutton \
# dev-python/sphinx-design \
# dev-python/sphinx-issues \
# dev-python/sphinx-reredirects \
# dev-python/pydata-sphinx-theme
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
}
EPYTEST_IGNORE=(
tests/test_docs.py
# Ignore uv related tests
# tests/test_examples.py
# tests/test_regression/test_v2_dtype_regression.py
)
EPYTEST_DESELECT=(
# Ignore uv related tests
'tests/test_examples.py::test_scripts_can_run[script_path0]'
)
python_test() {
epytest --run-slow-hypothesis #-Werror::zarr.core.dtype.common.UnstableSpecificationWarning
}
Manage flags for this package:
euse -i <flag> -p dev-python/zarr |
euse -E <flag> -p dev-python/zarr |
euse -D <flag> -p dev-python/zarr
>=dev-python/donfig-0.8[] >=dev-python/google-crc32c-0.14[] >=dev-python/numpy-2[] >=dev-python/numcodecs-0.14[] >=dev-python/packaging-22.0[] >=dev-python/typing-extensions-4.13[] cli? ( dev-python/typer[] ) optional? ( dev-python/universal-pathlib[] ) remote? ( >=dev-python/fsspec-2023.10.0[] )
dev-python/hatch-vcs[] test? ( dev-python/flask-cors[] dev-python/moto[] dev-python/numpydoc[] dev-python/s3fs[] dev-python/tomlkit[] dev-python/typer[] dev-python/universal-pathlib[] dev-libs/zfp[python] )