1 |
commit: f28fbc871d4387c9b9ff9d44fa0d49511f1d84f9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 08:44:38 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 09:07:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28fbc87 |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.3.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hypothesis/Manifest | 1 + |
13 |
dev-python/hypothesis/hypothesis-6.3.4.ebuild | 63 +++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index df798751c64..47f2fc5b275 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST hypothesis-python-6.3.0.tar.gz 9108690 BLAKE2B 1b46da2ea5b1eafeb49df28aadbc |
21 |
DIST hypothesis-python-6.3.1.tar.gz 9112495 BLAKE2B 4c6f58911bfa45fe82681631109a9e4ad75927f6970d8fff60ec4a6d0fb2d1ec8a0b345163128b26a902e864984444947d7c96a027b26eae8a11c4f3e4fe6cd7 SHA512 6b595942ecb27684f97efb84b1c671bfcd77040516d83cb568e08a47a7add13aeb5c4f47e2e2cd3d84c52911f271d07382e4607cfcdbc751dc754bfbfb07336b |
22 |
DIST hypothesis-python-6.3.2.tar.gz 9112580 BLAKE2B eb74e089fc5f1f33ec0f34858c0492fd6526f9a61897f94780b5c63f50374e50c61c8a59535bb3814fa9a59478c59f3e43eedde4d401e1ff3fb6fe039d2e3cdf SHA512 b8ea74ce8e479734aa8973d0127351064ccfb3ac6308aad67a57c6545d12a0594b7946f05aabd4bbaa2ddb5ec0ac2959e09db8733cf9e3a96181740aafae8813 |
23 |
DIST hypothesis-python-6.3.3.tar.gz 9112864 BLAKE2B 8eeb01d17aad81188856464c488002f29080c92e7dcc150e9189875c070150c2203e208f25527e3ee8163c4aa9a2a72c0fe6f19c4c992e86f59d53f8dc22bdaf SHA512 803755e6cddb2de4b44df707c75858154a97d7888d4009ac4c4d3b577c5d58571176fe4155025c77e1d59843334f82babf0d7998557404d5964d0547e7c1428a |
24 |
+DIST hypothesis-python-6.3.4.tar.gz 9112374 BLAKE2B 78867f0ff142d6059a20c437c3fab333de06eff5247d93c1e70f75d801e54984c20da01322b7d4d4999cb30f2c59c6e7cf955fe60ecc0e90b452b8ddf6b6f2ff SHA512 7baee8758d86afbb0a8a16e18b2f14d3870ee2f5623857fc691ca1afc7f0c6555b367fbe758ff02c08af492b4569ef2aeb8d61bf3bd91ac458312a43b02d02f6 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-6.3.4.ebuild b/dev-python/hypothesis/hypothesis-6.3.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..46ee7df74d3 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-6.3.4.ebuild |
31 |
@@ -0,0 +1,63 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+),sqlite" |
40 |
+ |
41 |
+inherit distutils-r1 eutils multiprocessing optfeature |
42 |
+ |
43 |
+DESCRIPTION="A library for property based testing" |
44 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
45 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
46 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
47 |
+ |
48 |
+LICENSE="MPL-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
51 |
+IUSE="cli" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
56 |
+ cli? ( |
57 |
+ $(python_gen_cond_dep ' |
58 |
+ dev-python/black[${PYTHON_USEDEP}] |
59 |
+ dev-python/click[${PYTHON_USEDEP}] |
60 |
+ ' 'python*') |
61 |
+ ) |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-python/mock[${PYTHON_USEDEP}] |
66 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
67 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
68 |
+ !!<dev-python/typing-3.7.4.1 |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+distutils_enable_tests --install pytest |
73 |
+ |
74 |
+python_prepare() { |
75 |
+ if ! use cli || [[ ${EPYTHON} != python* ]]; then |
76 |
+ sed -i -e '/console_scripts/d' setup.py || die |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ distutils_install_for_testing --via-root |
82 |
+ pytest -vv tests/cover tests/pytest tests/quality \ |
83 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |
84 |
+ die "Tests fail with ${EPYTHON}" |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ optfeature "datetime support" dev-python/pytz |
89 |
+ optfeature "dateutil support" dev-python/python-dateutil |
90 |
+ optfeature "numpy support" dev-python/numpy |
91 |
+ optfeature "django support" dev-python/django dev-python/pytz |
92 |
+ optfeature "pandas support" dev-python/pandas |
93 |
+ optfeature "pytest support" dev-python/pytest |
94 |
+} |