# Contributor: Luca Weiss <luca@lucaweiss.eu>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=py3-dasbus
pkgver=1.7
pkgrel=4
pkgdesc="DBus library in Python 3"
url="https://dasbus.readthedocs.io"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-gobject3 dbus"
makedepends="py3-setuptools"
checkdepends="py3-pytest7"
subpackages="$pkgname-pyc"
source="https://github.com/rhinstaller/dasbus/releases/download/v$pkgver/dasbus-$pkgver.tar.gz"
builddir="$srcdir/dasbus-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ccf575d28d91ad96de78b8122eaf247182d22cee701859b1da83b2de2793362f164fe609187e8a9586083c55d985d95b6980b9ec291cb10d41d74dec03d8a873  dasbus-1.7.tar.gz
"
