Install this version:
emerge -a =dev-python/pymatgen-2026.9.24
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/pymatgen-2026.9.24
Or alternatively:
emerge --autounmask-write -a =dev-python/pymatgen-2026.9.24
# 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
inherit distutils-r1 pypi
DESCRIPTION="Python Materials Genomics (umbrella shim over pymatgen-core)"
HOMEPAGE="
https://github.com/materialsproject/pymatgen/
https://pypi.org/project/pymatgen/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=dev-python/pymatgen-core-2026.9.23[${PYTHON_SINGLE_USEDEP}]
"
# The shim switched to setuptools-scm for its own version.
BDEPEND="$(python_gen_cond_dep '
>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
')"
src_prepare() {
# The module split is complete, but this sdist still exposes pmg; keep
# pymatgen-core as its canonical provider.
grep -qF 'pmg = "pymatgen.cli.pmg:main"' pyproject.toml ||
die "pmg script anchor moved"
sed -i -e '/^pmg = "pymatgen\.cli\.pmg:main"$/d' pyproject.toml || die
distutils-r1_src_prepare
}
>=dev-python/pymatgen-core-2026.9.23[]
$(python_gen_cond_dep ' >=dev-python/setuptools-scm-8[${PYTHON_USEDEP}] ')