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: Sat, 02 Apr 2022 07:33:51
Message-Id: 1648884660.bfa43ef503ee512dda261097a0b748a988b87714.arthurzam@gentoo
1 commit: bfa43ef503ee512dda261097a0b748a988b87714
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 07:31:00 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 07:31:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa43ef5
7
8 dev-python/hypothesis: add 6.41.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/hypothesis/Manifest | 1 +
13 dev-python/hypothesis/hypothesis-6.41.0.ebuild | 66 ++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index db0e900897b9..c4818aa2ec11 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -5,3 +5,4 @@ DIST hypothesis-python-6.39.5.tar.gz 9182972 BLAKE2B ecd92b759f574d2abed5310815c
21 DIST hypothesis-python-6.39.6.tar.gz 9183382 BLAKE2B c1112dc11d9129c7685eccac563232c978fcb470b0537e468b802ecf1f758af8dfce323514f923605662e720d0d54f525e5aac3e871407255f5f0732856748fe SHA512 985645265e9644bd2731a08ab942984fae5cb35e04e27e60450bfcf237c375dae1f2d3bf3694031a452866669ae2e19a05085ce9e35630965938c066b265595a
22 DIST hypothesis-python-6.40.0.tar.gz 9184563 BLAKE2B 7087baa8eed9849e639bc1d67e77a3426702e64e31252e893a19efb1457dd3c9994ed7459084b9c88f3574b89268369ee63bc1ed8dd6f0c257c0af50dc5a3eb1 SHA512 51b062b934c90137cb55fea58c639ebdbfdae21d0af8bf951add83b36c1286f959de47442219174fe80d0a98ffbe0c53cb9cd1b3908b63742c5d7662c84518e0
23 DIST hypothesis-python-6.40.1.tar.gz 9184638 BLAKE2B bc1900b5328514f1f1f5753d9370229a30108e626400fa93aebcb43d33caa6301108b277ccd8356ef944f2d54387444f67efa4e041f553e40f889b233be03ed8 SHA512 9ae09a8a337fb2d4a94b83ecc02dc5c62759ca9c9043bdd2326084413ff3106c52a654c2c7a99b22fcef28909387ef0450207d0883cf15303c84f3a7f42987d9
24 +DIST hypothesis-python-6.41.0.tar.gz 9186412 BLAKE2B 406cc13a7f341fa9844fe7ae7e65509e161244dec2e52d62f3177b84746562ffd09eb5aaba21f6c3fb8137bf26c7b4ea2d7064e8ef12bf59c0bbe7b99154ce13 SHA512 71884130be8a0474918172b8fd754e944831de2a6f34cf5a4f32c318820026ece8e0ab2f04ac1c9cae47329eec84c5006337556420eb523f4df57dd43dadb916
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.41.0.ebuild b/dev-python/hypothesis/hypothesis-6.41.0.ebuild
27 new file mode 100644
28 index 000000000000..1bf4b6813bee
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.41.0.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
39 +PYTHON_REQ_USE="threads(+),sqlite"
40 +
41 +inherit distutils-r1 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 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
51 +IUSE="cli"
52 +
53 +RDEPEND="
54 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
55 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
56 + cli? (
57 + $(python_gen_cond_dep '
58 + dev-python/black[${PYTHON_USEDEP}]
59 + dev-python/click[${PYTHON_USEDEP}]
60 + ' python3_{8..10})
61 + )
62 +"
63 +BDEPEND="
64 + test? (
65 + dev-python/mock[${PYTHON_USEDEP}]
66 + dev-python/pexpect[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + !!<dev-python/typing-3.7.4.1
69 + )
70 +"
71 +
72 +distutils_enable_tests pytest
73 +
74 +python_test() {
75 + # subtests are broken by warnings from random plugins
76 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
77 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
78 +
79 + epytest tests/cover tests/pytest tests/quality \
80 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
81 +}
82 +
83 +python_install() {
84 + distutils-r1_python_install
85 + if ! use cli || ! has "${EPYTHON}" python3.{8..10}; then
86 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
87 + fi
88 +}
89 +
90 +pkg_postinst() {
91 + optfeature "datetime support" dev-python/pytz
92 + optfeature "dateutil support" dev-python/python-dateutil
93 + optfeature "numpy support" dev-python/numpy
94 + optfeature "django support" dev-python/django dev-python/pytz
95 + optfeature "pandas support" dev-python/pandas
96 + optfeature "pytest support" dev-python/pytest
97 +}