1 |
commit: 86a075763a49ab1fc68eedd5d799bae59f5dcc7b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 12 06:37:51 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 12 09:17:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86a07576 |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.1.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-5.1.4.ebuild | 56 +++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 76c5001c67b..45c3da40853 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST hypothesis-python-4.55.4.tar.gz 9004357 BLAKE2B 93fe51581f044cf5f416d9b74b8 |
21 |
DIST hypothesis-python-4.57.1.tar.gz 9005030 BLAKE2B 3d318896cbe2d24fa6847e764a109791d3acf3821852f8e170991b0be5b069f166e16bdacf7a82fbe49bd9db5188315cdec7cdb4592647571233949ec5732991 SHA512 28622ce8a1d89d09df65f3fbf7e92a1ad98dac140ab646fe11fcb15e6aa9a9672eb51d459f984384d92b819f902de911b06cec2542582d529dd556d2f99ed952 |
22 |
DIST hypothesis-python-5.1.2.tar.gz 8989829 BLAKE2B 7063b859c8c180412b2d9b2641faefc861e52444b45d4bc455ba8309f44ee24c27e6c9a6d18e93fb0455a93d09d8b30a0d313313212436227f989ad7dd0d1b87 SHA512 48150a3ea6d1c6270cf016a363f110f29e6e2adc2bfa98947581dc963a0a19398609c21251f821c9e741e743411a989730000bff83d9c5a1b95b805408e32df1 |
23 |
DIST hypothesis-python-5.1.3.tar.gz 8989332 BLAKE2B a86409b0620b3821aae8f23f0473be08ed1152140f05c2ebcb3f226cc133fdbbb617856c768bc6034bcf25e6603e9e72b1b885df116fb9dfce7164018792fb99 SHA512 dd854158c1e903562c7aa101fe7810837816102b1f5dd840ec3d5df9abd9c1463d05adab79ef428749ea2a5d1a425150971d23ae3259b71baf0e0e8a8a9a3bb8 |
24 |
+DIST hypothesis-python-5.1.4.tar.gz 8989696 BLAKE2B 9d85cb1473654e36a235a07d2390fc967d6d7f2944e5294dedbca15ddb3c49901b04e9277ee80ff7591aa2b81ea0e2d537051f96b685900aefab5db70d135ac6 SHA512 25d0112f7b7a13221b8b68d553f4085344f1e8681c8795fac0bcfd714400a828539298d2919d3e638979eadd5daa65ef7ee8b0b946df076145e59c8bb7058a64 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.1.4.ebuild b/dev-python/hypothesis/hypothesis-5.1.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..24078c547ce |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.1.4.ebuild |
31 |
@@ -0,0 +1,56 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+),sqlite" |
39 |
+ |
40 |
+inherit distutils-r1 eutils |
41 |
+ |
42 |
+DESCRIPTION="A library for property based testing" |
43 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
44 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
45 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
46 |
+ |
47 |
+LICENSE="MPL-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
50 |
+IUSE="test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+BDEPEND=" |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ test? ( |
60 |
+ ${RDEPEND} |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pytest-4.3[${PYTHON_USEDEP}] |
64 |
+ !!<dev-python/typing-3.7.4.1 |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ # avoid pytest-xdist dep for one test |
70 |
+ sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ |
71 |
+ tests/pytest/test_statistics.py || die |
72 |
+ distutils-r1_src_prepare |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ pytest -vv tests/cover tests/pytest tests/quality || |
77 |
+ die "Tests fail with ${EPYTHON}" |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ optfeature "datetime support" dev-python/pytz |
82 |
+ optfeature "dateutil support" dev-python/python-dateutil |
83 |
+ optfeature "numpy support" dev-python/numpy |
84 |
+ optfeature "django support" dev-python/django dev-python/pytz |
85 |
+ optfeature "pandas support" dev-python/pandas |
86 |
+ optfeature "pytest support" dev-python/pytest |
87 |
+} |