1 |
commit: da279e6bc6934f7cb5c3a88cdf2cc1672ea2f70d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 08:57:50 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 09:09:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da279e6b |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.43.8 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hypothesis/Manifest | 1 + |
13 |
dev-python/hypothesis/hypothesis-5.43.8.ebuild | 64 ++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 505f8057c23..13627be053c 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST hypothesis-python-5.41.3.tar.gz 9095982 BLAKE2B 3a1b7052b3f71d1f8139101d16f |
21 |
DIST hypothesis-python-5.41.5.tar.gz 9098660 BLAKE2B 6caa742d34a3a2aeb6c6fdec3f8772e5221e1d0b2becc1362b657d383387f2a1152756222cfe86ffbb3e23a53e395050a16325d74ec9e03822a5c0020505b38e SHA512 b220a48e5746bacc6fa257f79feed0dc2c0a9f66862aba74806fb1ac3d06f380620410c9c46c377c50e4fa7c3171d5b31ce2759e7a3e0e2abd0920b237242dd6 |
22 |
DIST hypothesis-python-5.43.3.tar.gz 9103991 BLAKE2B e374edf17571c33e48dc8d259db2fb23b9cc358f56189ebd60f3e9141ade7759eede1bdbd91d924f144a20b1ea0b7ec19817559b7f82a90f026ac101a7feeabd SHA512 392fb794fc5ba06acd1e465cf1500f742d8b056148540778f1ec9c5065be66c0f514f0fa6872337869079636c71235d51d4c6722a63b03037b689edd6f09809f |
23 |
DIST hypothesis-python-5.43.4.tar.gz 9104105 BLAKE2B 08b8c9ac7ac72afcc4556ae2167af7b4ab79d505da8c9f6a11c91d211f26ccf320c8f5ed41458f5e34f75614ad4aecdbf6df62275868dc079c037390dcbc9e08 SHA512 065e1bdd878eab35f38105e8da3f5cf108670a51fd48ea1996bebedf8c8a152386d0eb5284ed43d4e588695a408b3a455a2e4757430e31bb5dbf0ece1f64d294 |
24 |
+DIST hypothesis-python-5.43.8.tar.gz 9106677 BLAKE2B dd4334eb96e25cb31a16f06d1f7714bbf3631a7f09ed1bc46b9ce0d951b0718ac3ba0353ea4f71c221273f9c204380ab052e1bf4e3726e438a46585f6057b0db SHA512 475e6a60dd1132bcf1f4aed5e4cf6d478529e158583d4e81a1a74891037ff3fd80547a7adf5ee7263654984738fd983ef19fe8a6fb44cbd38160371ec30a6842 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.43.8.ebuild b/dev-python/hypothesis/hypothesis-5.43.8.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b910c24f12a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.43.8.ebuild |
31 |
@@ -0,0 +1,64 @@ |
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_{6,7,8,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 test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
57 |
+ cli? ( |
58 |
+ $(python_gen_cond_dep ' |
59 |
+ dev-python/black[${PYTHON_USEDEP}] |
60 |
+ dev-python/click[${PYTHON_USEDEP}] |
61 |
+ ' python3_{6..9}) |
62 |
+ ) |
63 |
+" |
64 |
+BDEPEND=" |
65 |
+ test? ( |
66 |
+ ${RDEPEND} |
67 |
+ dev-python/mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
69 |
+ <dev-python/pytest-6.2[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
71 |
+ !!<dev-python/typing-3.7.4.1 |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+python_prepare() { |
76 |
+ if ! use cli || [[ ${EPYTHON} != python* ]]; then |
77 |
+ sed -i -e '/console_scripts/d' setup.py || die |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ distutils_install_for_testing --via-root |
83 |
+ pytest -vv tests/cover tests/pytest tests/quality \ |
84 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |
85 |
+ die "Tests fail with ${EPYTHON}" |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ optfeature "datetime support" dev-python/pytz |
90 |
+ optfeature "dateutil support" dev-python/python-dateutil |
91 |
+ optfeature "numpy support" dev-python/numpy |
92 |
+ optfeature "django support" dev-python/django dev-python/pytz |
93 |
+ optfeature "pandas support" dev-python/pandas |
94 |
+ optfeature "pytest support" dev-python/pytest |
95 |
+} |