# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-vcrpy pkgver=5.1.0 pkgrel=0 pkgdesc="Automatically mock your HTTP interactions to simplify and speed up testing" options="!check" # Tests fail on the builders url="https://github.com/kevin1024/vcrpy" arch="noarch" license="MIT" depends="py3-yarl py3-yaml py3-wrapt" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-httpbin" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-$pkgver.tar.gz" builddir="$srcdir/vcrpy-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl # ssl errors when test_requests.py is run .testenv/bin/python3 -m pytest --deselect=tests/integration/test_requests.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 235c2d45a55158ae5ad9fca7de56dee15bfc1d42b6895db9e16fab5cf448ae8428d452ef71d0b90ec750e49f8a977074af3e662f58b1ab1303af82c0a9dc43fa vcrpy-5.1.0.tar.gz "