diff options
| author | Michał Górny <mgorny@gentoo.org> | 2026-01-29 04:51:05 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2026-01-29 05:38:49 +0100 |
| commit | 649103932d77164ddd835fa4a71ba2d176633ccd (patch) | |
| tree | 86536ad9d67238dcd3aec7ccdd3ac7c0674dab00 /dev-python | |
| parent | d511002f9e674dc2464c75904e4d69265fa87834 (diff) | |
| download | gentoo-649103932d77164ddd835fa4a71ba2d176633ccd.tar.gz gentoo-649103932d77164ddd835fa4a71ba2d176633ccd.tar.bz2 gentoo-649103932d77164ddd835fa4a71ba2d176633ccd.zip | |
dev-python/hypothesis: Bump to 6.151.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/hypothesis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/hypothesis/hypothesis-6.151.4.ebuild | 100 |
2 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 64b57c97d67f..0803b3212bf0 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -6,3 +6,4 @@ DIST hypothesis-6.150.3.gh.tar.gz 9878751 BLAKE2B 4b1995a52a8d195e5cc04eba890934 DIST hypothesis-6.151.0.gh.tar.gz 9878804 BLAKE2B 42ef6bf0c5bb8346b38a647804aecfcad20991c6ae70a48838050d424377f1e9256fb36df3e440250f3fb8f7fed6fd80cfd1288c38c446ffed62f3166aa571e2 SHA512 418af03dc2eaf456c96c0395c32fdcfc018e8543ed5029f7c6058e9e5d1368afbb04cdfc6a21bd44f87a0c064680927d75284eb5670f6f28b1b3ac2aee90823b DIST hypothesis-6.151.2.gh.tar.gz 9878376 BLAKE2B 11f6da8ede480bffb503e67d6ed943eb1497686ef61a401f6fa7d6d819ab293f1595284205f5a7c9b534076d607a5d6c7a9a5eea2a89be2375f658d4b6a93924 SHA512 6f8f73a740e046f4e96e7c1f5d6ececd75a2d9a12e52b94fcf2419cfe2cb02807a16e030a0ce0335793c12beb07f07423cdc13a61d432a3836d9fc767c3e912e DIST hypothesis-6.151.3.gh.tar.gz 9879536 BLAKE2B 339bb7cc1f45403c97626b4ca0df33e9378ef301efcc7949aca0750fe08425af3e71703a5c0743feb731d62e6d5cc44c2f41fe84544aa8d9d199b004d567f8ab SHA512 f7b3d4859b2d43c3be8c36c610ca16a3ae8dd36dbb14a5e029b4046467fb061ec70f4e53e88ecdb7c85a1364e556955b83cc8d511d1962dcf34dae047ace6f3d +DIST hypothesis-6.151.4.gh.tar.gz 9879516 BLAKE2B b53dc0691cdbbfad47dd4de9712cecc7fddd9c59b626d22250d367a71dd58c43c22c173380d120f56d7b9f17c03df076ea7963c8c435fb9b187b3baffeb2d44e SHA512 fef3fe9f7b10204c37a4d7767ab0fd9e4a74e3d69de55700cfd34ef86dd2af980131411f3728462d28670836cf9adfc53d87b24bd85a6d19bce562471290dfe3 diff --git a/dev-python/hypothesis/hypothesis-6.151.4.ebuild b/dev-python/hypothesis/hypothesis-6.151.4.ebuild new file mode 100644 index 000000000000..84a0d37d14f9 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.151.4.ebuild @@ -0,0 +1,100 @@ +# 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=() + case ${EPYTHON} in + python3.14t) + EPYTEST_DESELECT+=( + # TODO + 'hypothesis-python/tests/cover/test_lambda_formatting.py::test_modifying_lambda_source_code_returns_unknown[False]' + ) + ;; + 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 +} |
