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