1 |
commit: 9034aa5d2962700b90b602b371892026f942192a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 31 09:50:42 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 31 10:35:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9034aa5d |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.4.0 |
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.4.0.ebuild | 56 +++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 17de81afb52..4e60bcf53dc 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST hypothesis-python-5.1.4.tar.gz 8989696 BLAKE2B 9d85cb1473654e36a235a07d2390 |
21 |
DIST hypothesis-python-5.1.5.tar.gz 8989752 BLAKE2B e1dc2720fd8500436ff0ec0fadd8c7986f279be125f8cebf376349d6c6d1d28f9225cceb2fa54ab66e92c6750832dc6d157cf156980e7f58aa7251a1eff625fd SHA512 89edc57116b3c503df2f0c6d4e60637ace6a7fc5c4ece6b426362b01a0be11e79be1e95784e24d849ac120000165ff46efd78c6cb6b163aebcb2b5a8c8d4c8e1 |
22 |
DIST hypothesis-python-5.1.6.tar.gz 8990038 BLAKE2B c6f1c2974d84d60da7ab7b704c8dee96bc819de3e8a237343398c0fe74191ace9cbd23299b16189eaefa936fda87d9ee8fe171f37ff39014ba59cc421b2af03c SHA512 e9049506a7da1df40dfad5bef5f270116047f3633ff27bbbd83ebf5f93b89010446c8ccd12100b033dcbf2743f0c17aabcbaf1774aeba0efc1e7483d58eaba81 |
23 |
DIST hypothesis-python-5.3.0.tar.gz 8991842 BLAKE2B 9bd5124a6a0b07c910aebd5caa3a27d6ee19d307f88438ef097b09108a6c41d4b548c224861b1aed766a84696fe494c3b50f55b0b35bf81563ee62c366a03956 SHA512 d622c6754e6162120e7bdc17f482d64e917042499179668744b26e09ba355d94681b2e1029d786c38af19c4193c41eb5fe3e4a7ecc322acd1895b8f90d2b1f95 |
24 |
+DIST hypothesis-python-5.4.0.tar.gz 8992011 BLAKE2B 0d748429e34360437799d043f75282153687b84c1f0c27f18846c75bf6a801797c460f3e1d22a04d52f1b046cb33d6ac34fcae93c40180e0273957ea81e3fb40 SHA512 9b168f11f9d7e720691ce3fdbff8f97d3fdfff86bdc9ab2683e58ff31dece36d57b468693fcf3b1b7e6cfc16022dd733eacabbf5bd08042ac8cca6c45050c129 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.4.0.ebuild b/dev-python/hypothesis/hypothesis-5.4.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..963f87ee74a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.4.0.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 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+),sqlite" |
40 |
+ |
41 |
+inherit distutils-r1 eutils |
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="~amd64 ~arm ~arm64 ~x86" |
51 |
+IUSE="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 |
+" |
58 |
+BDEPEND=" |
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 |
+} |