aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-dbusmock/APKBUILD
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2019-09-07 17:42:50 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-09-07 13:25:04 -0300
commit03f33cec0e73ab8f3406bb0c558d64ff4a2e3f0b (patch)
tree4be10017655850b4461f9b366ab3ed44b4fd08dc /testing/py3-dbusmock/APKBUILD
parente2ba61d792fa285275621dd280dce21205f44017 (diff)
downloadaports-03f33cec0e73ab8f3406bb0c558d64ff4a2e3f0b.tar.bz2
aports-03f33cec0e73ab8f3406bb0c558d64ff4a2e3f0b.tar.xz
testing/py3-dbusmock: new aport
Diffstat (limited to 'testing/py3-dbusmock/APKBUILD')
-rw-r--r--testing/py3-dbusmock/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/py3-dbusmock/APKBUILD b/testing/py3-dbusmock/APKBUILD
new file mode 100644
index 0000000000..8dc17a151f
--- /dev/null
+++ b/testing/py3-dbusmock/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Luca Weiss <luca@z3ntu.xyz>
+pkgname=py3-dbusmock
+_pyname=python-dbusmock
+pkgver=0.18.1
+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="580802987747c937a7ae0219d67fa08df17bf749dcc9431529e63bb77acde18b81752a32513e458797e66efa142abe6c614888f0ddbe8feb925bd27cff614059 python-dbusmock-0.18.1.tar.gz"