Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/
Date: Thu, 30 Jul 2020 06:19:41
Message-Id: 1596089031.6af912e5c5acdf28fed4a6a078b2b6e90e3df107.mgorny@gentoo
1 commit: 6af912e5c5acdf28fed4a6a078b2b6e90e3df107
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 30 06:03:51 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 30 06:03:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af912e5
7
8 dev-python/hypothesis: Bump to 5.23.7
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.23.7.ebuild | 56 ++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index c7e8967558b..79b4624a834 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -10,3 +10,4 @@ DIST hypothesis-python-5.20.3.tar.gz 9024258 BLAKE2B 75bc1e868061be9c8d0377143f5
21 DIST hypothesis-python-5.21.0.tar.gz 9025422 BLAKE2B acd6f3b0f945ae65656af2a718add06fe440e221fda7793e3557ab194ccee4c6327e7946a58ce51e9efe3c08274888a648d9021c49fdcf663a04c28b99a0f636 SHA512 1921e5ea8d0f2a6e55d80611004d35671f7a7a02cb8a8f101b45e64e4ef23f9c2c8a9c467fb6c9f33ae440622020e1ad504f51a7d725a6449ca715ad1f373e40
22 DIST hypothesis-python-5.23.1.tar.gz 9031807 BLAKE2B 00c54296f83bdcd41ac63b36a29dc9e542a236406609b9b800912a209d56c4169f2d4b1c139697ffe38eff6cd886cd4a2491f3b4b5294cc710aedb70f5905436 SHA512 b6da23a586b60b5a094dddccab82f3b863cebcde5103e492807fb9e0b9d047b3e5fe928da24eabf5764298332d9c1e9b434ef167d7cff0a9de8a175d5f9964a5
23 DIST hypothesis-python-5.23.3.tar.gz 9032683 BLAKE2B 629a44b3dbfd206c259413df44143e38d045b915d3b85359e199064aae20ec3b6946d856fbb2a9c702c765f5cd69c4418ad009fa79d6cc6eb196c2662e4254bc SHA512 15d4b3b57c234f970bebf7bd98a75a5ac031422b3f70848d25a8ee94852a3f73f8b3e1d69ee850144f1f229d1dbe18fa7959df1930fc42a5768ac7e3d6bb9e7b
24 +DIST hypothesis-python-5.23.7.tar.gz 9037231 BLAKE2B 0f0e2b700dfaaf4e29b950ec38ef9ba6b1aaf5a90f3266def8f895c35e4a0e8104258c86c30fca49f2239106d032c306a7a520e0b1976a87d4b50b3314c5ff2d SHA512 9e4a52d149f84b895cb72ab955997caf1070f778ae15c3401602ba86ca0cbe7ea2a6603821bd7c0d79ce59bb41adb21e0cb11f22ab179e9657784c2da40685f2
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.23.7.ebuild b/dev-python/hypothesis/hypothesis-5.23.7.ebuild
27 new file mode 100644
28 index 00000000000..54efc2972e9
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.23.7.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,9} 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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~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-5.3.5[${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 +}