dev-python/hypothesis: Bump to 5.9.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-04-16 07:48:05 +02:00
parent ec7ac0960b
commit 235045f39d
2 changed files with 57 additions and 0 deletions

View File

@@ -6,3 +6,4 @@ DIST hypothesis-python-5.8.0.tar.gz 9001523 BLAKE2B a72d86fa22902c33eaee870a6773
DIST hypothesis-python-5.8.1.tar.gz 9001588 BLAKE2B 988e641e6fe3764441f3298e4566926daa34853a74d8777b30afd42ea8c9a017d0723d8577a639dca1372fcd14effeaadfadf5035a99d28c5251a839ccc50e82 SHA512 58f933aa9a167c1fdbfd94ce0bf4c78bc6adf4ba2ee6f7953949185245ad104dfd8e2c849bd065d954b68d42ad1db7d722365f071772e1f1549f4c21d772286f
DIST hypothesis-python-5.8.3.tar.gz 9002597 BLAKE2B c1bc44b72f0109c6182e1aaa590a76926d2e47d39a32a0d90ad63da14c04e919350d332ca3b855410e0899be572ab07312778c2d5309f79734a62457707b69a8 SHA512 60a3b239d13058e5bf5fe06128d9f5a7adb1350e1468186cc71198e37fe25340449d2838699af1ecf3bd958123081064353eef7c251fbeb892708d835abcaa0d
DIST hypothesis-python-5.8.6.tar.gz 9003699 BLAKE2B 2c2b59e6ea1ddab2df82f5cfb20a28bb745fcb5faef0d7f4b1702f50f5561208ca418462dcd7c9c1e36fed6fe355735216f6238f29bd8a47d07d35b8529b6de7 SHA512 bf0a488c7ba10535d3e2d371ff7b444780d7aa6813dc6e702bb06b552d7d9f1b6f2a4cb37c86e0655d551a89defaa3ce2d2ab05a0e3f4cdc48379f2327362bde
DIST hypothesis-python-5.9.1.tar.gz 9004366 BLAKE2B 26b2412a1e11f17ed9449c4ac8acea17e380852980ddcbd9809122ba4b56347eef9b0af3690e41bd16582b81f38588322411c7b130883000952ddfbdedc33674 SHA512 ecb152e8c7f5910cf95c95571d39f33a2f38083c4ef4ad86674f312d0f413307863d8a15ccfa3a0cf0d4d058c175bdd51354cdc08e2bf5825bff5bc936ae2ca2

View File

@@ -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
}