dev-python/hypothesis: Bump to 6.155.7

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-06-22 06:04:48 +02:00
parent 1bf0585eb2
commit f8e5bb66ee
2 changed files with 106 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST hypothesis-6.152.11.gh.tar.gz 9614710 BLAKE2B 4d020765eef6d0faf19d5a61639e7c664090477a78104a1dbdeab9879bcc3c77beb018ee2902d3be8c4edb42baf2fe29ee3cc512d8217fc6b5bf8f557979cea9 SHA512 e0d8e8bf2bd9065706b73b0f0d89990f73635ef3b7e886cc1b6b1a4aefcb9ea6f90ae7db515173da39b21930126b3c044a49a63a09b716e1d26b0fad78ef9c32
DIST hypothesis-6.152.9.gh.tar.gz 9612140 BLAKE2B b4d2009d46eb28751446963edc51a653d05c5a39a28e76aa120a2ca00fd7d6c0f07c42f1026a16e0b4dc75742a66a191a8f5aa67249ecc3a397e8123f8153058 SHA512 b1f2301b7ced669dd4d53ee37173a48e8a937241138900c9dd17e70c1e4c8357215679c9ebb6e8a96c0d2fbe5e8e43aa45a21da569c624111b17417d0be1d426
DIST hypothesis-6.155.6.gh.tar.gz 9605463 BLAKE2B 7407223da122a01c4f35ddef236cef1a73ebbad41b6dd1d12b36025adf89754959a7dbe4225a1112b62c4c68884867d9ddc6af065468c3aed580e37029e2f6a0 SHA512 e09b25cbf26963ebea545ab60cd520bfff4c13dbe9e7f8b31a7ccb0bcb45038673e7f61d34c7963caca66a9566d749cfb208d0eb35d4ec4d59c43dd1945a0840
DIST hypothesis-6.155.7.gh.tar.gz 9606080 BLAKE2B aa57b12df421b8194564b85f09307add06c35b98ad923e3c1704ad5cdc5581c47e56e4bf0cf77048306395884a11b6b1b0131f94381250e2203b80c1f3fb6962 SHA512 2c4042084b918c249183b311b3037711043b3c43f685712a51b0751cbb781b065150db949f48ecf2e0ed7fcc9a530c395063252d868d893cfb36cd10af3e31f0

View File

@@ -0,0 +1,105 @@
# 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..15} python3_{13..15}t )
PYTHON_REQ_USE="threads(+),sqlite"
inherit distutils-r1 optfeature
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/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
S="${WORKDIR}/${P}/hypothesis"
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/
local EPYTEST_DESELECT=(
# broken somehow (xdist?)
'hypothesis/tests/pytest/test_constant_collection_timing.py::test_constant_collection_timing[True]'
)
local EPYTEST_IGNORE=(
# require syrupy
tests/cover/test_custom_reprs.py
)
case ${EPYTHON} in
python3.15*)
EPYTEST_DESELECT+=(
'hypothesis/tests/cover/test_lookup.py::test_resolves_forwardrefs_to_builtin_types[sentinel]'
'hypothesis/tests/cover/test_lookup.py::test_resolves_builtin_types[sentinel]'
)
;;
esac
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
}