Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/
Date: Sun, 03 Jul 2022 19:14:43
Message-Id: 1656875669.a2eafae9142319746e1b876009d750845ea0dbba.arthurzam@gentoo
1 commit: a2eafae9142319746e1b876009d750845ea0dbba
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 19:07:58 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 19:14:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2eafae9
7
8 dev-python/hypothesis: add 6.48.3
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/hypothesis/Manifest | 1 +
13 dev-python/hypothesis/hypothesis-6.48.3.ebuild | 76 ++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 0cf893b919a0..c5ae9bbf2d1b 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hypothesis-6.48.2.gh.tar.gz 9316125 BLAKE2B a35fde81976dcc874897bb14cbb65f55b4c54f065ed84a69a6ff41274e35013acac404a2234577e9d9f9cc3674d1496102a356289fa3b8d0f1371d7da3d839ad SHA512 3c38941cb17b0a22e547a8da84821b0e83f70da3e4476e8865d91eea90dc0175782084dc2a02b17b8db7a9e177e076a7e4d4044f0cad86f2e658ae01a6be2775
22 +DIST hypothesis-6.48.3.gh.tar.gz 9316363 BLAKE2B 25e2e722d9c57902c62eff687959af340ebece8153b581acaee568bda965f635950fd8e2a304d687c69e57fafcb2f6ad7be69a7aad193119ac9766d659cc58ab SHA512 0bf8b2ded8567051dccb4651099ef4010dcb86b779ad2b765b0bd16e36ed7fa176f7698ec1c9cfa388f6de22c33c5c0d55b3168d43f9b940d1ba1bee3d930914
23 DIST hypothesis-hypothesis-python-6.46.11.gh.tar.gz 9312248 BLAKE2B 78b5ca5bd38bd62d2fe50ab929df075e253c059aed329d6b52051fb01449f8de84ae340ba42a4af94ef592411139a45d34aad232fe4bb2d8412165730bbeca01 SHA512 6fdd54f28d275eb65a4f6e6919437d503eba6254c25e22298c34ac67e6de03cd99a5178b1a475b1da7f7afeed8406e89c20b4818436143f442222d26f0d94796
24 DIST hypothesis-hypothesis-python-6.47.3.gh.tar.gz 9314739 BLAKE2B 282b012e020fc6494b628ba629c576f604db831c219878ab92539fbd1d980f3363e490ef35f888b68902661dd82e682393641d13a882c1177d8570ec232b217a SHA512 c7231ff06ae5846f718e76c48ed4bb8a1fc0f9aff80c7ddd1ff0ead219eb93dcc7f9d5c5e591390661e81a33bcac79773ea620cfe3f246210114635f0c089144
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.48.3.ebuild b/dev-python/hypothesis/hypothesis-6.48.3.ebuild
27 new file mode 100644
28 index 000000000000..1065b755121f
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.48.3.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +CLI_COMPAT=( python3_{8..10} )
39 +PYTHON_COMPAT=( "${CLI_COMPAT[@]}" python3_11 pypy3 )
40 +PYTHON_REQ_USE="threads(+),sqlite"
41 +
42 +inherit distutils-r1 multiprocessing optfeature
43 +
44 +TAG=hypothesis-python-${PV}
45 +MY_P=hypothesis-${TAG}
46 +DESCRIPTION="A library for property based testing"
47 +HOMEPAGE="
48 + https://github.com/HypothesisWorks/hypothesis/
49 + https://pypi.org/project/hypothesis/
50 +"
51 +SRC_URI="
52 + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz
53 + -> ${P}.gh.tar.gz
54 +"
55 +S="${WORKDIR}/${MY_P}/hypothesis-python"
56 +
57 +LICENSE="MPL-2.0"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
60 +IUSE="cli"
61 +
62 +RDEPEND="
63 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
64 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
65 + $(python_gen_cond_dep '
66 + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}]
67 + ' 3.8 3.9 3.10)
68 + cli? (
69 + $(python_gen_cond_dep '
70 + dev-python/black[${PYTHON_USEDEP}]
71 + dev-python/click[${PYTHON_USEDEP}]
72 + ' "${CLI_COMPAT[@]}")
73 + )
74 +"
75 +BDEPEND="
76 + test? (
77 + dev-python/mock[${PYTHON_USEDEP}]
78 + dev-python/pexpect[${PYTHON_USEDEP}]
79 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
80 + )
81 +"
82 +
83 +distutils_enable_tests pytest
84 +
85 +python_test() {
86 + # subtests are broken by warnings from random plugins
87 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
88 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
89 +
90 + epytest tests/cover tests/pytest tests/quality -n "$(makeopts_jobs)"
91 +}
92 +
93 +python_install() {
94 + distutils-r1_python_install
95 + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
96 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
97 + fi
98 +}
99 +
100 +pkg_postinst() {
101 + optfeature "datetime support" dev-python/pytz
102 + optfeature "dateutil support" dev-python/python-dateutil
103 + optfeature "numpy support" dev-python/numpy
104 + optfeature "django support" dev-python/django dev-python/pytz
105 + optfeature "pandas support" dev-python/pandas
106 + optfeature "pytest support" dev-python/pytest
107 +}