summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-23 07:25:10 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-23 07:41:40 +0200
commit6b185b7462587640269fe7769e17445b1539acd1 (patch)
tree2160c9cd7e60e43d5eabb2d9741006306c09f1c7 /dev-python/hypothesis
parentdev-python/hypothesis: Remove old (diff)
downloadgentoo-6b185b7462587640269fe7769e17445b1539acd1.tar.gz
gentoo-6b185b7462587640269fe7769e17445b1539acd1.tar.bz2
gentoo-6b185b7462587640269fe7769e17445b1539acd1.zip
dev-python/hypothesis: Bump to 5.10.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/hypothesis')
-rw-r--r--dev-python/hypothesis/Manifest1
-rw-r--r--dev-python/hypothesis/hypothesis-5.10.3.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
index d62ce8ebfdbc..7bcacadae455 100644
--- a/dev-python/hypothesis/Manifest
+++ b/dev-python/hypothesis/Manifest
@@ -1,3 +1,4 @@
DIST hypothesis-python-4.50.8.tar.gz 6814518 BLAKE2B f2c39cae3708fe88d1854cda97633ba420c32fda38093bb852ef45929762cade0f7f0d1ef696ff96f7ebe7460e8bf53f63de9c959bbbd9e8ec162196d307aac0 SHA512 8c77439fd029e2380afbc059d2edf977414997ba81ecdfde14dfe9dbe9515a92e701751d13879c6b879271f817e01926c2dc66945ae76eb141818da1775bc545
DIST hypothesis-python-4.57.1.tar.gz 9005030 BLAKE2B 3d318896cbe2d24fa6847e764a109791d3acf3821852f8e170991b0be5b069f166e16bdacf7a82fbe49bd9db5188315cdec7cdb4592647571233949ec5732991 SHA512 28622ce8a1d89d09df65f3fbf7e92a1ad98dac140ab646fe11fcb15e6aa9a9672eb51d459f984384d92b819f902de911b06cec2542582d529dd556d2f99ed952
DIST hypothesis-python-5.10.2.tar.gz 9006040 BLAKE2B 7ea925988ba600f59e48fcd18b85aaa2bec5a3f2a279b19be959e03fdf61e5c4ce75a781e70aa9138db86637f16fbb5d82118e7501f1d1c785345ecf7c5d1568 SHA512 a83bb6f368706ad3d31fc7cf4b4b3d27937dc540d6f44f592bfbd7f4380e045b6c71a08c5c977a4a3e16ac9b20f16caabb775cb387ce2576193d133acfa3773e
+DIST hypothesis-python-5.10.3.tar.gz 9006973 BLAKE2B dd7669c159aad1a8228e85b50e6362129a0cdbb6aea3715e8583b4896de18def8de1ec4fda878517fc2dac8694dbbd6106f65cbfda81801469efbc3569ccd491 SHA512 708361d3fb7cdf1cf030711175fd6ea2d936d781967ab3c53c816085099f487c918506b98d724465c7df75df3a07e65a1b59d4ccc73c7730be071ccfc878f7e0
diff --git a/dev-python/hypothesis/hypothesis-5.10.3.ebuild b/dev-python/hypothesis/hypothesis-5.10.3.ebuild
new file mode 100644
index 000000000000..161feb37e789
--- /dev/null
+++ b/dev-python/hypothesis/hypothesis-5.10.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+PYTHON_REQ_USE="threads(+),sqlite"
+
+inherit distutils-r1 eutils
+
+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 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}]
+ !!<dev-python/typing-3.7.4.1
+ )
+"
+
+src_prepare() {
+ # avoid pytest-xdist dep for one test
+ sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \
+ tests/pytest/test_statistics.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ pytest -vv tests/cover tests/pytest tests/quality ||
+ die "Tests fail with ${EPYTHON}"
+}
+
+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
+}