# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-pylink-square pkgver=1.1.0 pkgrel=0 pkgdesc="Python interface for SEGGER J-Link" url="https://github.com/Square/pylink" arch="noarch" license="Apache-2.0" depends=" py3-psutil py3-six python3 " makedepends=" py3-gpep517 py3-installer py3-setuptools py3-wheel " checkdepends="py3-mock" subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/p/pylink-square/pylink-square-$pkgver.tar.gz" builddir="$srcdir/pylink-square-$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 .testenv/bin/python3 -m unittest discover -k 'not test_cp15_register_write_success and not test_jlink_restarted and not test_set_log_file_success' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" cbb222998fe52b69685734bd12423dae2828bcb19127060afef67cbb56df204e819c5359690854a528b44880fcee597c374356192841a54f20808de7846f23f2 pylink-square-1.1.0.tar.gz "