# Template file for 'python3-hypothesis'
pkgname=python3-hypothesis
version=6.127.0
revision=1
build_wrksrc=hypothesis-python
build_style=python3-pep517
# disable tests requiring unpackaged dependencies or installed entrypoints
make_check_args="
 --ignore=tests/codemods/test_codemods.py
 --ignore=tests/codemods/test_codemod_cli.py
 --ignore=tests/dpcontracts/test_contracts.py
 --ignore=tests/lark/test_grammar.py
 --ignore=tests/patching/test_patching.py
 --ignore=tests/redis/test_redis_exampledatabase.py
 -k not((test_registered_from_entrypoint)or(test_typevar_type_is_consistent))
"
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-attrs python3-sortedcontainers"
checkdepends="python3-pytest-xdist black python3-typing_extensions python3-pytz
 python3-numpy python3-pexpect python3-dateutil python3-pandas $depends"
short_desc="Python library for property-based testing"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MPL-2.0"
homepage="https://hypothesis.works/"
changelog="https://raw.githubusercontent.com/HypothesisWorks/hypothesis/master/hypothesis-python/docs/changes.rst"
distfiles="https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-${version}.tar.gz"
checksum=1fbc38de3f7b9310f12f29701310be024b53874edbf5d60abd1eaa463c5bd3d2

if [ "$XBPS_CHECK_PKGS" != full ]; then
	# Skip "full" tests unless explicitly requested"
	make_check_target="
	 tests/cover tests/pytest tests/datetime
	 tests/typing_extensions tests/ghostwriter
	"
fi
