Install this version:
emerge -a =dev-python/fields-5.0.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 5.0.0 | 8 | ~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12,{13..15}{,t}} )
inherit distutils-r1 pypi
DESCRIPTION="Container class boilerplate killer"
HOMEPAGE="
https://github.com/ionelmc/python-fields/
https://pypi.org/project/fields/
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
BDEPEND="test? ( dev-python/attrs[${PYTHON_USEDEP}] )"
PATCHES=(
"${FILESDIR}/${P}-fix-replace-deprecated-path-parameter-in-pytest_igno.patch"
"${FILESDIR}/${P}-pytest-9.0-unique-ids.patch"
)
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_prepare_all() {
sed -r \
-e "/--benchmark-disable/d" \
-e 's|\[pytest\]|\[tool:pytest\]|' \
-i setup.cfg || die
distutils-r1_python_prepare_all
}
python_test() {
epytest --ignore tests/test_perf.py tests
}