diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-01-14 07:21:32 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-01-14 07:21:32 +0000 |
| commit | 15053568f0755357535f4a2e60e6b1cc7526e635 (patch) | |
| tree | 9f6a2ce456ff68335cfb204d6967ac39306eb5b0 /dev-python/hypothesis | |
| parent | 0e945ea10fabe00333ef96dbe0eac88d15aba67e (diff) | |
| download | baldeagleos-repo-15053568f0755357535f4a2e60e6b1cc7526e635.tar.gz baldeagleos-repo-15053568f0755357535f4a2e60e6b1cc7526e635.tar.xz baldeagleos-repo-15053568f0755357535f4a2e60e6b1cc7526e635.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.150.2.ebuild | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index a7b3bffe58da..6f1c4b5f6bc2 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -9,3 +9,4 @@ DIST hypothesis-6.149.0.gh.tar.gz 9932424 BLAKE2B eb7433e0b5ab92dafd7d5659d1141e DIST hypothesis-6.149.1.gh.tar.gz 9932484 BLAKE2B 41bdda077c6cdd1e2b2f7650e8b4f5e125680ec3cea2979ad14dadcb553f36f0fd5970290d23aadd5bad64ba88c9dbb669946ca71021460c509e25bccdf394fa SHA512 78dfbdd8f48ca9c483b74fb13200b340b1791df977f79d8fc687cecc21a6c69dc37a6e0c184643f2eb13d5a49651e13e4ea2ed93976dcc4fa7ee135c2d4ee052 DIST hypothesis-6.150.0.gh.tar.gz 9932927 BLAKE2B b20631a108f8c79635be7ad57587f6a5f3020f653d087a26749cb9e0fe9e357942103a9e391d5fd16e1d771538009979f2ceb21fa421396219f33d45a6a75d10 SHA512 490eda1bbe74fc26365452ecf5641830cf9991a46ca877c2b823f8ab8cc05917fd2742b973ae2c91ceaefe8440b82961a5b14cb4381572fa8416877c784c3afa DIST hypothesis-6.150.1.gh.tar.gz 9878291 BLAKE2B 13a7ca820e8127fd86895cc203ef150046117ab8d9178a77b5c0844120ebc329e812d5d3d205ba03a9b96a5a7f8cc3ec4db17c04c4f459526e30fcc1659e2684 SHA512 bd5a8838fcc20cc78eae56df7ac380cfae4cffc5b8e8761f5ab4907cc98e83304221d967e1e583f1d42810da801e8083d919f7898c23d6d8389fef82a082d8a8 +DIST hypothesis-6.150.2.gh.tar.gz 9878291 BLAKE2B b9ae21ff95afe8bd4918d7298b7f1ff10528fc70cc358f9106f79ddb9a84fe6aa0c8f34538b75c5b55afa442b9e70534c07a04102569b62b16d11421ca9f8016 SHA512 648112f870904a922162c099fd982d3a3756209efd272531c3c848383e2a6df02c3ff4c57f4be68408084542075a194ac9fe5fdac158c566c1a3045358e1045a diff --git a/dev-python/hypothesis/hypothesis-6.150.2.ebuild b/dev-python/hypothesis/hypothesis-6.150.2.ebuild new file mode 100644 index 000000000000..8a0d46501a31 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.150.2.ebuild @@ -0,0 +1,91 @@ +# 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=( python3_{10..14} ) +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 -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 +} |
