Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/
Date: Thu, 23 Dec 2021 18:04:07
Message-Id: 1640282634.5301a7e10440cd72e8cb844957b8637ba3c18803.arthurzam@gentoo
1 commit: 5301a7e10440cd72e8cb844957b8637ba3c18803
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 23 18:03:43 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 23 18:03:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5301a7e1
7
8 dev-python/hypothesis: add 6.32.1
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/hypothesis/Manifest | 1 +
13 dev-python/hypothesis/hypothesis-6.32.1.ebuild | 62 ++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index a5748c4f3dfd..8187cf935962 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -1,2 +1,3 @@
21 DIST hypothesis-python-6.30.1.tar.gz 9180975 BLAKE2B 3b0e8e29d74f579a9ace6fc341451992386de3358defcf42936d2d535c31bae07d7ab49fa6d4a8d1a2bd0e8231086dd9795d78125555e668425fba2bc539b224 SHA512 8abf31debf94124744d17d5ddac6698a21981feca7b776e97d92d5f6d1404ec17794bdf11b256dc7b0a335a041af6d3f1f20ae6fd6a62abc1ad78c2b39354fa9
22 DIST hypothesis-python-6.31.4.tar.gz 9183157 BLAKE2B a8c82cd2e798b7dc0b149a09d52cdde77677473d91f3192783a8903fa7513ce410a89e67df32a812a12b59ca113b065c52e84fae0632f8a2dd852f4a39e90cbd SHA512 b1783d7463b575afa40418e4d67aff04c025bd9d733b1c6b2ac671d8d1c9a5d58ee7d10ce5e27aaa14156285abb6b182f7ee5f3ebe8eb335421680d20dbb4405
23 +DIST hypothesis-python-6.32.1.tar.gz 9176925 BLAKE2B 0b57c8b46b766055a19c8831620b6ad780bd1a3b3e4835496cbd01f4fb861c64679171c685797458ec56ff07fe9524840cffce1e1930390de71225b707163880 SHA512 f64b0ca16a47d9f4dbce4986aa2c4414e86e596b6e167bd8be373fda05f8bbb626de7a615861a71313faebde50b1fe55e54c8b20247c71fa4ecb2223de171502
24
25 diff --git a/dev-python/hypothesis/hypothesis-6.32.1.ebuild b/dev-python/hypothesis/hypothesis-6.32.1.ebuild
26 new file mode 100644
27 index 000000000000..ea716a889cd2
28 --- /dev/null
29 +++ b/dev-python/hypothesis/hypothesis-6.32.1.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=8
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 ~m68k ~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_{8..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/typing-3.7.4.1
67 + )
68 +"
69 +
70 +distutils_enable_tests --install pytest
71 +
72 +python_prepare() {
73 + if ! use cli || ! has "${EPYTHON}" python3.{8..9}; then
74 + sed -i -e '/console_scripts/d' setup.py || die
75 + fi
76 +}
77 +
78 +python_test() {
79 + distutils_install_for_testing
80 + epytest tests/cover tests/pytest tests/quality \
81 + -p no:pytest-describe \
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 +}