diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-19 18:57:17 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-19 18:57:17 +0000 |
| commit | 221a8131dab3bd52abe8a1c35202bba7545cdbe0 (patch) | |
| tree | 161d40c879411f29027a8cb092546806e85a5e37 /dev-python/hypothesis | |
| parent | 11deb79ce024dcc296457593252578db70b46e6c (diff) | |
| download | baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.gz baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.xz baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.zip | |
Adding metadata
Diffstat (limited to 'dev-python/hypothesis')
| -rw-r--r-- | dev-python/hypothesis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/hypothesis/hypothesis-6.131.6.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 0a1154264963..fae310f6c879 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -6,3 +6,4 @@ DIST hypothesis-6.130.8.gh.tar.gz 9538996 BLAKE2B 7f2779a69fbb1301cf7cdf0b414aff DIST hypothesis-6.130.9.gh.tar.gz 9540297 BLAKE2B f1739aa493baf7c908064b6450f601576b5e71ad254bf3b45cb2cdcf6b34f98f647beef5ed939e099c33e60cfe5ffc8b1b13b85ac115361e3a19c34ca30fef04 SHA512 11ac4ae33a53d622eaebdf6106b13d51141a57140c268d465d202650ae79925777fbebde828188b2ba1ba87f6e062f8d014131eef5b0d2315a327a9dcea7d30c DIST hypothesis-6.131.0.gh.tar.gz 9544526 BLAKE2B 8500bdcac754b34fcd7134ff8119fd90dfe29c2087b0900f20e4a303fb88843bf6c5aba1140c52e494af2cfa93424915152bb6a9d752fab437afce7bdf94eff6 SHA512 472b75cdd05e43115c750a0ec3cf025b3bac11c3de6fbdbe46c46efec93a0e3aa254f219ea0a9643652f9452d687c5ee317c145be88375cb72a29241aec823c9 DIST hypothesis-6.131.2.gh.tar.gz 9546087 BLAKE2B b400ceb3570a54a30d65f2fdb4a88ce15297f09ecb6fd9d669c6eb6fa4b4bf0dc4545267f64ed48b2e81eb82ebfcd92461221bcf5d32028eb138f546715c3df7 SHA512 5f18d421c9070a0c9762615266cb12e1acfa8257c81af6aeace7790a03b1b20c27e588fdc87d9ca4faa467735f11e2092cb91cfad96a5df8209329f40f9ecea3 +DIST hypothesis-6.131.6.gh.tar.gz 9548735 BLAKE2B 7407cb5f3236d4c06fa5fc663473a8a30073f780b5bdc96dd7d165018ff8b53de7cc0b190405eb8e2e815b3885357badeb85b52d7f5fe5d9d03ed851707f8960 SHA512 998314163d4d1c212dd54379b728ac85a6d4a3ea3c70086e48eb882b6949b08520f787425d7b718a038f0e9eb3129d487070c948df6d636f0e19643d7ef5b656 diff --git a/dev-python/hypothesis/hypothesis-6.131.6.ebuild b/dev-python/hypothesis/hypothesis-6.131.6.ebuild new file mode 100644 index 000000000000..377138685f65 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.131.6.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +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/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + python3.13t) + EPYTEST_DESELECT+=( + # TODO: missing warning + 'hypothesis-python/tests/cover/test_random_module.py::test_passing_referenced_instance_within_function_scope_warns' + ) + ;& + python3.1[23]*) + EPYTEST_DESELECT+=( + # TODO + 'hypothesis-python/tests/cover/test_reflection.py::test_clean_source[case-5]' + ) + ;; + esac + + epytest -o filterwarnings= -p rerunfailures --reruns=5 \ + tests/cover tests/pytest tests/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 +} |
