dev-python/pymatgen - 2026.3.23 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/pymatgen-2026.3.23

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pymatgen-2026.3.23

Or alternatively:

emerge --autounmask-write -a =dev-python/pymatgen-2026.3.23

Package Information

Description:
Python Materials Genomics (umbrella shim over pymatgen-core)
Homepage:
https://github.com/materialsproject/pymatgen/ https://pypi.org/project/pymatgen/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2026.3.23 8 ~amd64 0
View Raw Ebuild
# 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} )

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"

RDEPEND="
	>=dev-python/pymatgen-core-2026.3.9[${PYTHON_USEDEP}]
"

src_prepare() {
	# Upstream split moved phase_diagram, chempot_diagram, and
	# reaction_calculator (plus the pmg CLI) into pymatgen-core. The
	# pymatgen 2026.3.23 sdist was cut before that split and still
	# ships them, which collides with pymatgen-core 2026.3.9+.
	# Drop our copies so pymatgen-core provides the canonical files.
	sed -i -e '/^pmg = "pymatgen\.cli\.pmg:main"$/d' pyproject.toml || die
	rm src/pymatgen/analysis/{phase_diagram,chempot_diagram,reaction_calculator}.py \
		|| die
	distutils-r1_src_prepare
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/pymatgen-core-2026.3.9[]