1 |
commit: 52b8592d1cf0cee417d88eb47f331303ea0b39bb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 05:59:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 06:16:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52b8592d |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.14.3 |
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.14.3.ebuild | 62 ++++++++++++++++++++++++++ |
14 |
2 files changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 66ba4087162..ba80c2258be 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST hypothesis-python-6.14.0.tar.gz 9135056 BLAKE2B 47d1efcee5e1c4037f1a20f08e3bc873fc143a2182bbde07e897812622c4d68923f78ac356bd97ef541566a27a874705eb2438747daaebe84f95fc2a2262bac1 SHA512 f7821449d3bf7f3656b52dad09027e40ea4af1779fcc7c0b995dac55843953fdab3f2ba69eb1b8de8258616f49cf8e5098c6a222d01071916c6f0c9fe184c80b |
22 |
DIST hypothesis-python-6.14.2.tar.gz 9135496 BLAKE2B f77f0668c4d0c2f5a952e06a40ae7898631804d3406c9711eb30a4e5a11e73ba2772be3cb437aacea2a75cd65f688a2485b98885c19cf743020900b0cf70f08c SHA512 e495e1c471fd4b185e23326700e85bf90635fcc8bf316c758c3285803ff0f7ad0269351b3a7631033495bb6498a8f19cb8661c55248ec5e14ff2a09e0c3af3c1 |
23 |
+DIST hypothesis-python-6.14.3.tar.gz 9135537 BLAKE2B 2effb0c68cf3a7a2f7d56c0c46c2ba36cbed4fed35b8a617ec68a721990247370772b986f0492aab112f7420c07409f8d738485ca28f42e7aea919af52611b10 SHA512 1722c5dcf1eb7375fd09d4208851826582808449fcaaa0345f1461d9a531961500a9c888bec5a457efbbb34f8178464b3358a3187b94bb5c783af42b4e7287ce |
24 |
|
25 |
diff --git a/dev-python/hypothesis/hypothesis-6.14.3.ebuild b/dev-python/hypothesis/hypothesis-6.14.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..536affb7ae1 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/hypothesis/hypothesis-6.14.3.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+),sqlite" |
38 |
+ |
39 |
+inherit distutils-r1 multiprocessing optfeature |
40 |
+ |
41 |
+DESCRIPTION="A library for property based testing" |
42 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
43 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
44 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
45 |
+ |
46 |
+LICENSE="MPL-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
49 |
+IUSE="cli" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
54 |
+ cli? ( |
55 |
+ $(python_gen_cond_dep ' |
56 |
+ dev-python/black[${PYTHON_USEDEP}] |
57 |
+ dev-python/click[${PYTHON_USEDEP}] |
58 |
+ ' python3_{7..9}) |
59 |
+ ) |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ test? ( |
63 |
+ dev-python/mock[${PYTHON_USEDEP}] |
64 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
65 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
66 |
+ !!dev-python/pytest-describe |
67 |
+ !!<dev-python/typing-3.7.4.1 |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests --install pytest |
72 |
+ |
73 |
+python_prepare() { |
74 |
+ if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then |
75 |
+ sed -i -e '/console_scripts/d' setup.py || die |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ distutils_install_for_testing |
81 |
+ epytest tests/cover tests/pytest tests/quality \ |
82 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ optfeature "datetime support" dev-python/pytz |
87 |
+ optfeature "dateutil support" dev-python/python-dateutil |
88 |
+ optfeature "numpy support" dev-python/numpy |
89 |
+ optfeature "django support" dev-python/django dev-python/pytz |
90 |
+ optfeature "pandas support" dev-python/pandas |
91 |
+ optfeature "pytest support" dev-python/pytest |
92 |
+} |