# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-branca _pkgorig=branca pkgver=0.6.0 pkgrel=3 pkgdesc="Generate complex HTML+JS pages with Python" url="https://github.com/python-visualization/branca" arch="noarch" license="MIT" depends="python3 py3-jinja2" makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/python-visualization/branca/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/$_pkgorig-$pkgver" options="!check" # disable for now - several test dependencies are missing build() { SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \ 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 .testenv/bin/python3 -m pytest -k 'not test_iframe' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" e80b3d173bc487857ab42d10365540e91cb6fc5def61bb76f418e2da8e74c9bf69e0ca46f86a47f96f5db48d0e98d6ad3091107dd1a5ca479c52adbfa3a79a9c branca-0.6.0.tar.gz "