| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.25.2 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{9..14} )
inherit distutils-r1 flag-o-matic pypi
DESCRIPTION="Python package to manipulate physical units"
HOMEPAGE="https://pint.readthedocs.io"
#SRC_URI="$(pypi_sdist_url --no-normalize "${PN^}" "${PV}")"
#S=${WORKDIR}/${P^}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc python"
RDEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/flexcache[${PYTHON_USEDEP}]
dev-python/flexparser[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )
"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
python_compile() {
distutils-r1_python_compile
}
python_compile_all() {
use doc && setup.py build
}
python_test() {
setup.py test
}
python_install_all() {
distutils-r1_python_install_all
}
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/flexcache[${PYTHON_USEDEP}]
dev-python/flexparser[${PYTHON_USEDEP}]
doc? ( dev-util/gtk-doc )
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/flexcache[${PYTHON_USEDEP}]
dev-python/flexparser[${PYTHON_USEDEP}]