gentoo/dev-python/chardet/chardet-6.0.0_p1.ebuild
Sam James 4bdb31b2a8
dev-python/chardet: Stabilize 6.0.0_p1 ALLARCHES, #972077
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-05 23:01:43 +01:00

38 lines
816 B
Bash

# 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_{11..14} pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="Universal encoding detector"
HOMEPAGE="
https://github.com/chardet/chardet/
https://pypi.org/project/chardet/
"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris"
BDEPEND="
dev-python/hatch-vcs[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=( hypothesis )
EPYTEST_XDIST=1
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# super flaky test
# https://github.com/chardet/chardet/issues/256
test.py::test_detect_all_and_detect_one_should_agree
)
epytest -o addopts=
}