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: Sat, 30 Apr 2022 07:35:15
Message-Id: 1651304092.a2b6755159ebc7ce52e2dce422d834bd325e318b.mgorny@gentoo
1 commit: a2b6755159ebc7ce52e2dce422d834bd325e318b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 30 06:51:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 30 07:34:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b67551
7
8 dev-python/hypothesis: Bump to 6.45.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hypothesis/Manifest | 1 +
13 dev-python/hypothesis/hypothesis-6.45.3.ebuild | 65 ++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index e180fae18390..ebc2baafb85f 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -3,3 +3,4 @@ DIST hypothesis-python-6.43.3.tar.gz 9189636 BLAKE2B d47e4b5f3016e32c8ba547eca7f
21 DIST hypothesis-python-6.44.0.tar.gz 9189825 BLAKE2B f6688f55a920b0dc65beab54d715c98869bf70d29ed4044f4ad15c88cb9b60cc5dee834f9d218e15d6cc9e02a8b25114660af2578ab07c9a353124cb95611e22 SHA512 8642d078f2e7e232baa100075dac530e4e7c358f8ea7bdb5fd1f3d29ceb291a1a00abfdd25596669010c230893c7d6fc29cc54be42340aabc2481a612e616684
22 DIST hypothesis-python-6.45.0.tar.gz 9191348 BLAKE2B e607b21f0e24daec57b19be5e8c1b77c9d78abb724cd5b89dc7dff1351a066387f990d0d92bded39ccb4da4368c3b827a6f3117a24c251d8955be98d8338ba3a SHA512 01e4aea5ce71c476fbee52182ff07529126744eb8bb603175370d33d2e1ce49a367ef2c0ec7abf879ed2bfa25a31e1b2136e2b79bc68d4a4c200cc3159583c6c
23 DIST hypothesis-python-6.45.1.tar.gz 9190980 BLAKE2B 61365d27603383cb76d62a0f0f4ca01ac09c779d90b8f028709fedb20dccabb8bb3d452d7bf87926a8bc30c334387378e1cc8e2b42c9bfa8834577e01b34d635 SHA512 a68eaf4b5012735027aba70eae8c244747a676e345b5ab6c6f7e08cab58ce3330410eba5eaa1ded89d1e15386bf644d3df9012b382d675e967781cd7b762fb21
24 +DIST hypothesis-python-6.45.3.tar.gz 9191554 BLAKE2B 0fc07224be3c0f9f852d86c70540f616ea5f2b081e8e784ade4af105597146fd16c8c5245ca8e4fcf681847e4214b13da36dd88f81be4a24411e516b313f428a SHA512 f103e45de796d9c6374dd51e16d05e3aab472ad86d9f78dba810ab4a034893aac3aebf944af279d850f3138a6205c56c91c6e861673fb777228a9fb5d3a5a59c
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.45.3.ebuild b/dev-python/hypothesis/hypothesis-6.45.3.ebuild
27 new file mode 100644
28 index 000000000000..7eae997f3fdb
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.45.3.ebuild
31 @@ -0,0 +1,65 @@
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 + )
69 +"
70 +
71 +distutils_enable_tests pytest
72 +
73 +python_test() {
74 + # subtests are broken by warnings from random plugins
75 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
76 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
77 +
78 + epytest tests/cover tests/pytest tests/quality \
79 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
80 +}
81 +
82 +python_install() {
83 + distutils-r1_python_install
84 + if ! use cli || ! has "${EPYTHON}" python3.{8..10}; then
85 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
86 + fi
87 +}
88 +
89 +pkg_postinst() {
90 + optfeature "datetime support" dev-python/pytz
91 + optfeature "dateutil support" dev-python/python-dateutil
92 + optfeature "numpy support" dev-python/numpy
93 + optfeature "django support" dev-python/django dev-python/pytz
94 + optfeature "pandas support" dev-python/pandas
95 + optfeature "pytest support" dev-python/pytest
96 +}