Install this version:
emerge -a =sci-physics/xraylarch-2026.3.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-physics/xraylarch-2026.3.0
Or alternatively:
emerge --autounmask-write -a =sci-physics/xraylarch-2026.3.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_{12..14} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_EXT=1
inherit distutils-r1 pypi
DESCRIPTION="Software for analysis of X-ray absorption and fluorescence data"
HOMEPAGE="
https://xraypy.github.io/xraylarch/
https://github.com/xraypy/xraylarch/
https://pypi.org/project/xraylarch/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
# Tests require remote scientific databases and the full optional fixture stack.
RESTRICT="test"
src_prepare() {
distutils-r1_src_prepare
if use arm64; then
rm -r larch/bin/{darwin64,linux64,win64} || die
fi
}
# Always include the wx stack: plot imports become unguarded whenever wxpython
# is detectable.
RDEPEND="
>=dev-python/larixite-2026.1.0[${PYTHON_SINGLE_USEDEP}]
amd64? (
$(python_gen_cond_dep '
dev-python/mkl-fft[${PYTHON_USEDEP}]
')
)
$(python_gen_cond_dep '
>=dev-python/asteval-1.0.8[${PYTHON_USEDEP}]
dev-python/charset-normalizer[${PYTHON_USEDEP}]
dev-python/darkdetect[${PYTHON_USEDEP}]
dev-python/dill[${PYTHON_USEDEP}]
dev-python/fabio[${PYTHON_USEDEP}]
>=dev-python/h5py-3.13[${PYTHON_USEDEP}]
>=dev-python/hdf5plugin-7.0[${PYTHON_USEDEP}]
dev-python/imageio[${PYTHON_USEDEP}]
>=dev-python/lmfit-1.3.1[${PYTHON_USEDEP}]
>=dev-python/matplotlib-3.10[${PYTHON_USEDEP}]
>=dev-python/numdifftools-0.9.41[${PYTHON_USEDEP}]
>=dev-python/numpy-2.2.0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/pillow-8.3.2[${PYTHON_USEDEP}]
dev-python/pip[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pyfai[${PYTHON_USEDEP}]
>=dev-python/pyshortcuts-1.9.8[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/scikit-image[${PYTHON_USEDEP}]
dev-python/scikit-learn[${PYTHON_USEDEP}]
>=dev-python/scipy-1.15[${PYTHON_USEDEP}]
>=dev-python/silx-3.0[${PYTHON_USEDEP}]
>=dev-python/sitka-spruce-0.4[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-2.0[${PYTHON_USEDEP}]
dev-python/sqlalchemy-utils[${PYTHON_USEDEP}]
dev-python/tabulate[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/tomli-w[${PYTHON_USEDEP}]
>=dev-python/uncertainties-3.2.1[${PYTHON_USEDEP}]
>=dev-python/wxmplot-2026.2.2[${PYTHON_USEDEP}]
>=dev-python/wxpython-4.3.0:*[${PYTHON_USEDEP}]
>=dev-python/wxutils-2026.3.0[${PYTHON_USEDEP}]
>=dev-python/xraydb-4.5.8[${PYTHON_USEDEP}]
')
"
DEPEND="${RDEPEND}"
BDEPEND="
$(python_gen_cond_dep '
>=dev-python/setuptools-64[${PYTHON_USEDEP}]
>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
')
"
>=dev-python/larixite-2026.1.0[${PYTHON_SINGLE_USEDEP}] amd64? ( $(python_gen_cond_dep ' dev-python/mkl-fft[${PYTHON_USEDEP}] ') ) $(python_gen_cond_dep ' >=dev-python/asteval-1.0.8[${PYTHON_USEDEP}] dev-python/charset-normalizer[${PYTHON_USEDEP}] dev-python/darkdetect[${PYTHON_USEDEP}] dev-python/dill[${PYTHON_USEDEP}] dev-python/fabio[${PYTHON_USEDEP}] >=dev-python/h5py-3.13[${PYTHON_USEDEP}] >=dev-python/hdf5plugin-7.0[${PYTHON_USEDEP}] dev-python/imageio[${PYTHON_USEDEP}] >=dev-python/lmfit-1.3.1[${PYTHON_USEDEP}] >=dev-python/matplotlib-3.10[${PYTHON_USEDEP}] >=dev-python/numdifftools-0.9.41[${PYTHON_USEDEP}] >=dev-python/numpy-2.2.0[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/pillow-8.3.2[${PYTHON_USEDEP}] dev-python/pip[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyfai[${PYTHON_USEDEP}] >=dev-python/pyshortcuts-1.9.8[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/scikit-image[${PYTHON_USEDEP}] dev-python/scikit-learn[${PYTHON_USEDEP}] >=dev-python/scipy-1.15[${PYTHON_USEDEP}] >=dev-python/silx-3.0[${PYTHON_USEDEP}] >=dev-python/sitka-spruce-0.4[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-2.0[${PYTHON_USEDEP}] dev-python/sqlalchemy-utils[${PYTHON_USEDEP}] dev-python/tabulate[${PYTHON_USEDEP}] dev-python/termcolor[${PYTHON_USEDEP}] dev-python/tomli-w[${PYTHON_USEDEP}] >=dev-python/uncertainties-3.2.1[${PYTHON_USEDEP}] >=dev-python/wxmplot-2026.2.2[${PYTHON_USEDEP}] >=dev-python/wxpython-4.3.0:*[${PYTHON_USEDEP}] >=dev-python/wxutils-2026.3.0[${PYTHON_USEDEP}] >=dev-python/xraydb-4.5.8[${PYTHON_USEDEP}] ')
>=dev-python/larixite-2026.1.0[${PYTHON_SINGLE_USEDEP}] amd64? ( $(python_gen_cond_dep ' dev-python/mkl-fft[${PYTHON_USEDEP}] ') ) $(python_gen_cond_dep ' >=dev-python/asteval-1.0.8[${PYTHON_USEDEP}] dev-python/charset-normalizer[${PYTHON_USEDEP}] dev-python/darkdetect[${PYTHON_USEDEP}] dev-python/dill[${PYTHON_USEDEP}] dev-python/fabio[${PYTHON_USEDEP}] >=dev-python/h5py-3.13[${PYTHON_USEDEP}] >=dev-python/hdf5plugin-7.0[${PYTHON_USEDEP}] dev-python/imageio[${PYTHON_USEDEP}] >=dev-python/lmfit-1.3.1[${PYTHON_USEDEP}] >=dev-python/matplotlib-3.10[${PYTHON_USEDEP}] >=dev-python/numdifftools-0.9.41[${PYTHON_USEDEP}] >=dev-python/numpy-2.2.0[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/pillow-8.3.2[${PYTHON_USEDEP}] dev-python/pip[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyfai[${PYTHON_USEDEP}] >=dev-python/pyshortcuts-1.9.8[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/scikit-image[${PYTHON_USEDEP}] dev-python/scikit-learn[${PYTHON_USEDEP}] >=dev-python/scipy-1.15[${PYTHON_USEDEP}] >=dev-python/silx-3.0[${PYTHON_USEDEP}] >=dev-python/sitka-spruce-0.4[${PYTHON_USEDEP}] >=dev-python/sqlalchemy-2.0[${PYTHON_USEDEP}] dev-python/sqlalchemy-utils[${PYTHON_USEDEP}] dev-python/tabulate[${PYTHON_USEDEP}] dev-python/termcolor[${PYTHON_USEDEP}] dev-python/tomli-w[${PYTHON_USEDEP}] >=dev-python/uncertainties-3.2.1[${PYTHON_USEDEP}] >=dev-python/wxmplot-2026.2.2[${PYTHON_USEDEP}] >=dev-python/wxpython-4.3.0:*[${PYTHON_USEDEP}] >=dev-python/wxutils-2026.3.0[${PYTHON_USEDEP}] >=dev-python/xraydb-4.5.8[${PYTHON_USEDEP}] ')
$(python_gen_cond_dep ' >=dev-python/setuptools-64[${PYTHON_USEDEP}] >=dev-python/setuptools-scm-8[${PYTHON_USEDEP}] ')