# Contributor: Magnus Sandin <magnus.sandin@valitron.se>
# Maintainer: Magnus Sandin <magnus.sandin@valitron.se>
pkgname=py3-pulsectl
_pkgreal=pulsectl
pkgver=24.11.0
pkgrel=1
pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)"
options="!check" # No tests available
url="https://pypi.org/project/pulsectl/"
arch="noarch"
license="MIT"
depends="python3 libpulse"
makedepends="
	py3-gpep517
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

sha512sums="
3fa4f913a0cf5dca4e5d24019cd69f3045c3116693ad503f7de04e013be5141a3bcaeda72b73258372d56fb2f35bf321e09ca4c1ed1f6d8880124b744195a124  pulsectl-24.11.0.tar.gz
"
