aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dbusmock/APKBUILD
blob: 14a762073a3d5043b696efcd3110c21a7bac8d6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-dbusmock
_pyname=python-dbusmock
pkgver=0.20.0
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 py3-setuptools"
checkdepends="dbus py3-nose bash"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# Skip the fakeroot tests as they can't run under our fakeroot environment
	# https://github.com/martinpitt/python-dbusmock/issues/46
	env -u LD_PRELOAD python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="26660439801dbd4c2cdc146d67fa465ecfdfbe4dba4fbd163e0f00af415247d0ff502122d0a850b5bd6dde9f296dea601dcb180ba4bdd5d58966ee4ccdef8999  python-dbusmock-0.20.0.tar.gz"