Files

52 lines
1.2 KiB
Bash
Raw Permalink Normal View History

# Copyright 2022-2026 Gentoo Authors
2025-04-04 15:00:07 +03:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2026-06-07 19:43:29 +02:00
PYTHON_COMPAT=( python3_{12..14} )
2025-04-04 15:00:07 +03:00
DISTUTILS_USE_PEP517=setuptools
PYPI_PN="fire"
inherit distutils-r1 pypi
DESCRIPTION="Library for automatically generating command line interfaces from Python objects"
2026-08-13 23:42:44 +02:00
HOMEPAGE="https://pypi.org/project/fire"
2025-04-04 15:00:07 +03:00
LICENSE="Apache-2.0"
SLOT="0"
2026-09-03 17:18:51 +02:00
KEYWORDS="~amd64"
2025-04-04 15:00:07 +03:00
RDEPEND="
2026-08-13 23:42:44 +02:00
dev-python/six[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
"
2025-04-04 15:00:07 +03:00
DEPEND="
${RDEPEND}
test? (
2026-08-13 23:42:44 +02:00
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
2025-04-04 15:00:07 +03:00
)
"
2026-08-13 23:42:44 +02:00
PATCHES=(
"${FILESDIR}/python-fire-asyncio.patch"
"${FILESDIR}/python-fire-inspect.patch"
)
EPYTEST_PLUGINS=( pytest-asyncio )
2026-08-13 23:42:44 +02:00
distutils_enable_tests pytest
src_prepare() {
default
# Update / remove deprecated options
sed -ie "/'License ::/d" setup.py \
|| die "Failed to remove deprecated setuptools options"
sed -ie "s/requires_python/python_requires/g" setup.py \
|| die "Failed to rename deprecated `requires_python`"
sed -ie "/tests_require/d" setup.py \
|| die "Failed to remove deprecated `tests_require`"
}