aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dbusmock/APKBUILD
blob: 28df44d12ef2c69756038bf4313a85646ceef146 (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.22.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 -m unittest
}

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

sha512sums="2c3430f4178a16acc376ce582f4a1a9bbe8b917efcd7eee58dab85ee3addf60ba355ae9e7b318ec2cdf7ca771183c37d16520a1e5bcab8414c66e2d2a36d26fe  python-dbusmock-0.22.0.tar.gz"