# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-simplesoapy
pkgver=1.5.1
pkgrel=7
pkgdesc="Simple pythonic wrapper for SoapySDR library"
url="https://github.com/xmikos/simplesoapy"
arch="noarch"
license="MIT"
depends="python3 py3-numpy py3-soapy-sdr"
makedepends="py3-setuptools soapy-sdr-dev py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmikos/simplesoapy/archive/v$pkgver.tar.gz"
builddir="$srcdir/simplesoapy-$pkgver"
options="!check" # no unit tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5ef0a4fcd84e1da9207154d4b8c4679e8aa2c9885ca76eacb17c4fbd39f489be459f52bfd42ee9b369790c33a02ecc5d776735cf1665f3ee034c1e315fdbb818  py3-simplesoapy-1.5.1.tar.gz
"
