# Contributor: Drew DeVault # Maintainer: Leo pkgname=py3-hypothesis pkgver=5.3.1 pkgrel=0 pkgdesc="Advanced property-based (QuickCheck-like) testing for Python" options="!check" url="https://hypothesis.works/" arch="noarch" license="MPL-2.0" depends="py3-attrs py3-sortedcontainers" makedepends="py3-setuptools" checkdepends="py3-pytest py3-coverage py3-tz py3-numpy py3-dateutil py3-pexpect" source="py-hypothesis-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/hypothesis-python-$pkgver.tar.gz " builddir="$srcdir/hypothesis-hypothesis-python-$pkgver/hypothesis-python" replaces="py-hypothesis" # Backwards compatibility provides="py-hypothesis=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { # In python3 mock is actually unittest.mock sed -e 's/from mock/from unittest.mock/' -i tests/cover/test_regressions.py sed -e 's/from mock/from unittest.mock/' -i tests/cover/test_reflection.py rm -rf tests/lark tests/dpcontracts tests/pandas PYTHONPATH="$PWD/build/lib" pytest-3 -v -k "not test_healthcheck_traceback_is_hidden" } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="362ea4877dacd91c35f4e7ba60cf9ab9db8bca3c78b4ae38a7cebf314055d548fc8f9590836aaee3b38f573056d02deb2926f7963d31030a0ec31f9da684a113 py-hypothesis-5.3.1.tar.gz"