# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=qspectrumanalyzer
pkgver=2.2.0
pkgrel=5
pkgdesc="Spectrum analyzer for multiple SDR platforms"
url="https://github.com/xmikos/qspectrumanalyzer"
arch="noarch !x86 !armhf" # no py3-qt on armhf
license="GPL-3.0-only"
depends="
	hackrf
	py3-qt.py
	py3-qtgraph
	py3-setuptools
	py3-soapy_power
	python3
	"
makedepends="py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmikos/qspectrumanalyzer/archive/v$pkgver.tar.gz"
options="!check" # Test seems windows only :-/

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

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

sha512sums="
8aad19d4f02fac579a65279eb0a26bab18f9e1243a626419640b91eab488eb21c96b0a9c83e6cc0141760c887b2481b533d0a32432de0919e41904c5b279c627  qspectrumanalyzer-2.2.0.tar.gz
"
