# Maintainer: Luca Weiss pkgname=py3-dbusmock _pyname=python-dbusmock pkgver=0.18.3 pkgrel=0 pkgdesc="Mock D-Bus objects for tests" url="https://github.com/martinpitt/python-dbusmock" arch="noarch" license="LGPL-3.0-or-later" depends="py3-dbus py3-gobject3" makedepends="python3-dev" checkdepends="dbus py3-nose" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" options="!check" # See https://github.com/martinpitt/python-dbusmock/issues/46 build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="6f7b42eae578ce03024b3b5cc85e82f04a467803f4c8b4cb5193454dcd849038f11e6ce5028ca9dd57ea5a9380c1b754d8fc644b4a24b51deee9e87b409115c3 python-dbusmock-0.18.3.tar.gz"