# Contributor: Magnus Sandin # Maintainer: Magnus Sandin pkgname=py3-python-osc pkgver=1.8.3 pkgrel=0 pkgdesc="Open Sound Control server and client implementations in pure python" url="https://github.com/attwad/python-osc" arch="noarch" license="Unlicense" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel " source="$pkgver-$pkgver.tar.gz::https://github.com/attwad/python-osc/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/python-osc-$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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python*/site-packages/pythonosc/test } sha512sums=" cbe0092a59332492f801b73051b985fd8e6168ab70530b0994cf8b9862b98b49b5faa2d574ab8b94c0809b72321e364bd0be31c825971a7b3d95e03c2ecb17bf 1.8.3-1.8.3.tar.gz "