33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
# Template file for 'python3-hypothesis'
|
|
pkgname=python3-hypothesis
|
|
version=6.67.0
|
|
revision=1
|
|
build_wrksrc=hypothesis-python
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-attrs python3-sortedcontainers"
|
|
checkdepends="python3-pytest-xdist black python3-typing_extensions
|
|
python3-pytz python3-numpy python3-pexpect python3-dateutil $depends"
|
|
short_desc="Python3 library for property based testing"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="MPL-2.0"
|
|
homepage="https://hypothesis.works/"
|
|
changelog="https://hypothesis.readthedocs.io/en/latest/changes.html"
|
|
distfiles="https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-${version}.tar.gz"
|
|
checksum=77f8f9ea5a3da74429e6286515b6d99ebac9c54e470e2c9d8cdbe53916304e1b
|
|
|
|
do_check() {
|
|
# Manually run the tests that tox considers part of the "full" suite,
|
|
# less any related to packages not provided by Void.
|
|
#
|
|
# The tests in ghostwriter/test_ghostwriter_cli require a "hypothesis"
|
|
# entrypoint script, which does not exist until install time.
|
|
#
|
|
# The test_subTest_no_self function tries to run a separate
|
|
# interpreter, which will not see the local PYTHONPATH here.
|
|
PYTHONPATH=src python3 -m pytest -n $XBPS_MAKEJOBS \
|
|
-k 'not test_settings_alone and not test_subTest_no_self' \
|
|
--ignore=tests/ghostwriter/test_ghostwriter_cli.py \
|
|
tests/{cover,datetime,typing_extensions,ghostwriter}
|
|
}
|