commit:     7f72697faddb3ab1987b6f075446873f1bdc87e2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 19 20:09:33 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 19 20:41:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f72697f

dev-python/hypothesis: Bump to 6.21.6

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/hypothesis/Manifest                 |  1 +
 dev-python/hypothesis/hypothesis-6.21.6.ebuild | 62 ++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
index 56cdcf1691d..f2273ef30e2 100644
--- a/dev-python/hypothesis/Manifest
+++ b/dev-python/hypothesis/Manifest
@@ -10,3 +10,4 @@ DIST hypothesis-python-6.21.1.tar.gz 9162836 BLAKE2B 
af52db17d51801d03496036f14b
 DIST hypothesis-python-6.21.3.tar.gz 9165503 BLAKE2B 
ee57b10021d5a8fd4731563e41e2583c879efd602779f5dfaa21a549b34bece29ebdd8386bcb637039b1c679a634f61ff68128c7d1e427ef4ca5ff571197b401
 SHA512 
0446df21f467cbabc6918a68b8a678db458ac798adaaf57090a756ff3a9b749dee550e77e1f78292d4bfe6f24caac175b104b4f4f1607521776c497649ac9c66
 DIST hypothesis-python-6.21.4.tar.gz 9165577 BLAKE2B 
f2bf805d1ff1d469b2f62aa7095183a6eef2fa6f0e1cbd611a7e62dd978456ae199f64479ac43a7d34ffa7f3ae6b35c4aa1691dc863e6cc509914a23aa767f89
 SHA512 
7fd8a4c6a35417ac14999cfa668b9976314e022bc432a20387ef82b97021b626fe8a25e43ae92e5ecfdba8ab9cee0f182621132287c82511d64231272365fd06
 DIST hypothesis-python-6.21.5.tar.gz 9166120 BLAKE2B 
6f51bd99c3c2f38e540f7e9720aa49ec62c0b8308ba5424f50ea72ea97172481dc28fd086d09c34449bde2601a68984158392fe19ad724a3048cba549c88a9fb
 SHA512 
5cfa5196feffd5652e3c771fa8e99b8ebe563539d9a9ee0e87c5d9c08d363af19a207f76dd88fee0ff501f4d748d9cd1af87d01ef7d178d295f886123c11cd1a
+DIST hypothesis-python-6.21.6.tar.gz 9166313 BLAKE2B 
19ac66c1674be30e14d54faa61244ac6da5b67678da4c5dbc728fefcac2e5f0a99c31f7cbe6fc4bc8738e1b072b4accba6f97863e6d601303d4fd69d4ccbd96a
 SHA512 
454434f37dfc3f171d1865ac72d58821173654fabdd880c1b699ea0ff281405644bb1b370129843d35368cd9b6eb06fa00458e0aa41b2b7dc0b7e05e7f659a5d

diff --git a/dev-python/hypothesis/hypothesis-6.21.6.ebuild 
b/dev-python/hypothesis/hypothesis-6.21.6.ebuild
new file mode 100644
index 00000000000..119bf66a091
--- /dev/null
+++ b/dev-python/hypothesis/hypothesis-6.21.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_REQ_USE="threads(+),sqlite"
+
+inherit distutils-r1 multiprocessing optfeature
+
+DESCRIPTION="A library for property based testing"
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis 
https://pypi.org/project/hypothesis/";
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz";
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~x64-macos"
+IUSE="cli"
+
+RDEPEND="
+       >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
+       >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
+       cli? (
+               $(python_gen_cond_dep '
+                       dev-python/black[${PYTHON_USEDEP}]
+                       dev-python/click[${PYTHON_USEDEP}]
+               ' python3_{7..9})
+       )
+"
+BDEPEND="
+       test? (
+               dev-python/mock[${PYTHON_USEDEP}]
+               dev-python/pexpect[${PYTHON_USEDEP}]
+               dev-python/pytest-xdist[${PYTHON_USEDEP}]
+               !!<dev-python/typing-3.7.4.1
+       )
+"
+
+distutils_enable_tests --install pytest
+
+python_prepare() {
+       if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then
+               sed -i -e '/console_scripts/d' setup.py || die
+       fi
+}
+
+python_test() {
+       distutils_install_for_testing
+       epytest tests/cover tests/pytest tests/quality \
+               -p no:pytest-describe \
+               -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
+}
+
+pkg_postinst() {
+       optfeature "datetime support" dev-python/pytz
+       optfeature "dateutil support" dev-python/python-dateutil
+       optfeature "numpy support" dev-python/numpy
+       optfeature "django support" dev-python/django dev-python/pytz
+       optfeature "pandas support" dev-python/pandas
+       optfeature "pytest support" dev-python/pytest
+}

Reply via email to