dev-python/diffpy-utils - 3.7.2 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/diffpy-utils-3.7.2

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

autounmask =dev-python/diffpy-utils-3.7.2

Or alternatively:

emerge --autounmask-write -a =dev-python/diffpy-utils-3.7.2

Package Information

Description:
General-purpose utilities for the diffpy libraries
Homepage:
https://github.com/diffpy/diffpy.utils https://pypi.org/project/diffpy.utils/
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
3.7.2 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYPI_PN="${PN/-/.}"
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1 pypi

DESCRIPTION="General-purpose utilities for the diffpy libraries"
HOMEPAGE="
	https://github.com/diffpy/diffpy.utils
	https://pypi.org/project/diffpy.utils/
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"

RDEPEND="
	dev-python/numpy[${PYTHON_USEDEP}]
	dev-python/scipy[${PYTHON_USEDEP}]
	dev-python/xraydb[${PYTHON_USEDEP}]
"

src_prepare() {
	# sdist has no git info; pin dynamic version to PV.
	sed -i -e "/^dynamic\s*=/d" \
		-e "/^\[project\]$/a version = \"${PV}\"" \
		pyproject.toml || die
	distutils-r1_src_prepare
}

python_install_all() {
	distutils-r1_python_install_all
	# Drop legacy pkgutil-style namespace stub so multiple
	# diffpy.* distributions coexist via PEP 420 implicit namespace.
	find "${ED}" -path '*/site-packages/diffpy/__init__.py' -delete || die
	find "${ED}" -path '*/site-packages/diffpy/__pycache__/__init__.*' -delete || die
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/numpy[]
	dev-python/scipy[]
	dev-python/xraydb[]