dev-python/hypothesis: Bump to 6.152.3

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-27 03:34:56 +02:00
parent db78efd6e6
commit b81d8ae90d
2 changed files with 102 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ DIST hypothesis-6.151.14.gh.tar.gz 9871044 BLAKE2B bed431dcd481f5af11043fd0beca9
DIST hypothesis-6.151.9.gh.tar.gz 9864451 BLAKE2B 9d9c2800cf1212e743a599c261c78c0a7d349e58075a443e0d10e6373b1582e059abde416cec4f3a8185ae424725f93da8ab4e43dd70bd0f86071d69aca94def SHA512 3e41bdd077a18fe72360547bc03f2c3d7218e8cd6cb563fffd6024427bfa5ce0764ca9c7ef0dafdded896625128fc14b9d3f8c4564aa8a509545abf0ad24adbf
DIST hypothesis-6.152.1.gh.tar.gz 9871990 BLAKE2B cd86297e7247e3a515cbebf862a2397c4dfa50edda336e6be46b7b9b52d724857ab41ffb2b09846c7dfb6d0c6730082aa92735c7b4bd3b643781c87fd7de0706 SHA512 8d8c865bf38759e58020d4e4a1632dd0c3179c50deb14995bbe61cdf714b6230e9a3df0e2302c4842513d37d5c5cfeab49f05314b672afcf66e7081eafe88071
DIST hypothesis-6.152.2.gh.tar.gz 9601975 BLAKE2B 7903dece41ee26508700e8617105089371dfd8efa35de1ba49cda3512b8ad6cea89faab17c713c1d32a8b3dd19e6e16d62ea4faa2f08d7b39fca8f605ea329a5 SHA512 d88b967d4109e0604267b20740fd3fc2006d945b02bf4f3b7311d3108bc437c5790b26c6b45bae5aae858229c81d2333d203139cee5184a38e0ce83704527e87
DIST hypothesis-6.152.3.gh.tar.gz 9602379 BLAKE2B 8c7db0ec24dd55c6d1d72cea5b2c6da964307a15b343757735e53f029604b62f1c012ab59269ab393752bb283fc8c7078bdc152564e47f79d73e0b9e2fa41f71 SHA512 7047bba9041ef0576bd75d2350d4c96ab66ace165ef9adf42f49371ffa7c844585617e816e8b672502021013cd705476bcbb529ecbb66aff5b5d2524edf61c3b

View File

@@ -0,0 +1,101 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
CLI_COMPAT=( python3_{11..13} )
PYTHON_COMPAT=( "${CLI_COMPAT[@]}" pypy3_11 python3_14 python3_{13,14}t )
PYTHON_REQ_USE="threads(+),sqlite"
inherit distutils-r1 optfeature
TAG=hypothesis-python-${PV}
MY_P=hypothesis-${TAG}
DESCRIPTION="A library for property based testing"
HOMEPAGE="
https://github.com/HypothesisWorks/hypothesis/
https://pypi.org/project/hypothesis/
"
SRC_URI="
https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz
-> ${P}.gh.tar.gz
"
S="${WORKDIR}/${MY_P}/hypothesis-python"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="cli"
RDEPEND="
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
cli? (
$(python_gen_cond_dep '
dev-python/black[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
' "${CLI_COMPAT[@]}")
)
"
BDEPEND="
test? (
>=dev-python/attrs-22.2.0[${PYTHON_USEDEP}]
dev-python/pexpect[${PYTHON_USEDEP}]
>=dev-python/pytest-8[${PYTHON_USEDEP}]
)
"
PDEPEND="
dev-python/hypothesis-gentoo[${PYTHON_USEDEP}]
"
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_PLUGINS=( "${PN}" pytest-xdist )
EPYTEST_RERUNS=5
EPYTEST_XDIST=1
distutils_enable_tests pytest
python_test() {
# NB: paths need to be relative to pytest.ini,
# i.e. start with hypothesis-python/
local EPYTEST_DESELECT=(
# broken somehow (xdist?)
'hypothesis-python/tests/pytest/test_constant_collection_timing.py::test_constant_collection_timing[True]'
# used to fail for a few impls, now fails everywhere
'hypothesis-python/tests/cover/test_lambda_formatting.py::test_modifying_lambda_source_code_returns_unknown[False]'
)
local EPYTEST_IGNORE=(
# require syrupy
tests/cover/test_custom_reprs.py
)
local -x HYPOTHESIS_NO_PLUGINS=1
epytest -o filterwarnings= tests/{cover,pytest,quality}
}
src_install() {
local HAD_CLI=
distutils-r1_src_install
if [[ ! ${HAD_CLI} ]]; then
rm -r "${ED}/usr/bin" || die
fi
}
python_install() {
distutils-r1_python_install
if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
HAD_CLI=1
else
rm -r "${D}$(python_get_scriptdir)" || die
fi
}
pkg_postinst() {
optfeature "datetime support" dev-python/pytz
optfeature "dateutil support" dev-python/python-dateutil
optfeature "numpy support" dev-python/numpy
optfeature "django support" dev-python/django dev-python/pytz
optfeature "pandas support" dev-python/pandas
optfeature "pytest support" dev-python/pytest
}