dev-python/python-fire - 0.7.1 (guru)

Search

Install

Install this version:

emerge -a =dev-python/python-fire-0.7.1

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

autounmask =dev-python/python-fire-0.7.1

Or alternatively:

emerge --autounmask-write -a =dev-python/python-fire-0.7.1

Package Information

Description:
Library for automatically generating command line interfaces from Python objects
Homepage:
https://pypi.org/project/fire
License:
Apache-2.0

Ebuild Details

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

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
PYPI_PN="fire"
inherit distutils-r1 pypi

DESCRIPTION="Library for automatically generating command line interfaces from Python objects"
HOMEPAGE="https://pypi.org/project/fire"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/six[${PYTHON_USEDEP}]
	dev-python/termcolor[${PYTHON_USEDEP}]
"
DEPEND="
	${RDEPEND}
	test? (
		dev-python/hypothesis[${PYTHON_USEDEP}]
		dev-python/mock[${PYTHON_USEDEP}]
		dev-python/termcolor[${PYTHON_USEDEP}]
		dev-python/hypothesis[${PYTHON_USEDEP}]
	)
"

PATCHES=(
	"${FILESDIR}/python-fire-asyncio.patch"
	"${FILESDIR}/python-fire-inspect.patch"
)

EPYTEST_PLUGINS=( pytest-asyncio )

distutils_enable_tests pytest

src_prepare() {
	default
	# Update / remove deprecated options
	sed -ie "/license =/d" pyproject.toml \
		|| die "Failed to remove deprecated setuptools options"
}

Inherited Eclasses

Dependencies

DEPEND

	
	dev-python/six[]
	dev-python/termcolor[]

	test? (
		dev-python/hypothesis[]
		dev-python/mock[]
		dev-python/termcolor[]
		dev-python/hypothesis[]
	)

RDEPEND

	dev-python/six[]
	dev-python/termcolor[]