dev-python/pint - 0.22 (tgbugs-overlay)

Search

Install

Install this version:

emerge -a =dev-python/pint-0.22

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

autounmask =dev-python/pint-0.22

Or alternatively:

emerge --autounmask-write -a =dev-python/pint-0.22

Package Information

Description:
Operate and manipulate physical quantities in Python
Homepage:
https://github.com/hgrecco/pint
License:
BSD

Ebuild Details

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

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..11} )
PYPI_NO_NORMALIZE=1
PYPI_PN=Pint

inherit distutils-r1 pypi

DESCRIPTION="Operate and manipulate physical quantities in Python"
HOMEPAGE="https://github.com/hgrecco/pint"
S=$WORKDIR/${PYPI_PN}-$PV

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="babel uncertainties test"

DEPEND=""
RDEPEND="${DEPEND}
	babel? ( dev-python/babel[${PYTHON_USEDEP}] )
	uncertainties? ( dev-python/uncertainties[${PYTHON_USEDEP}] )
	test? ( dev-python/pytest-subtests[${PYTHON_USEDEP}] )
"

RESTRICT="!test? ( test )"

distutils_enable_tests pytest

src_prepare () {
	default
	sed -i "s/PACKAGE_VERSION/${PV}/" ${S}/${PN}/__init__.py
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/pint | euse -E <flag> -p dev-python/pint | euse -D <flag> -p dev-python/pint

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	babel? ( dev-python/babel[] )
	uncertainties? ( dev-python/uncertainties[] )
	test? ( dev-python/pytest-subtests[] )