dev-python/dbusmock: version bump to 0.18.2
authorDennis Lamm <expeditioneer@gentoo.org>
Sat, 2 Mar 2019 08:33:03 +0000 (09:33 +0100)
committerDennis Lamm <expeditioneer@gentoo.org>
Sat, 2 Mar 2019 08:33:26 +0000 (09:33 +0100)
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Bug: https://bugs.gentoo.org/659878
Bug: https://bugs.gentoo.org/656912
Bug: https://bugs.gentoo.org/636414
Bug: https://bugs.gentoo.org/649552
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-python/dbusmock/Manifest
dev-python/dbusmock/dbusmock-0.18.2.ebuild [new file with mode: 0644]
dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch [new file with mode: 0644]

index 2cc8793322253ed64def5459afec6410d756d9cc..d8da470bc7dcac400154fc0b8e3b5cc08400eb54 100644 (file)
@@ -1 +1,2 @@
 DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54
+DIST dbusmock-0.18.2.tar.gz 72031 BLAKE2B 44b46f05e48f1178fe95e44c83899bbef5bc64dcee856be1b332890893a5b901a03c236ad9a8cc6cf2ece83efbf5ec798551320a098736ff95c13951333ffaa3 SHA512 2421cea872e1d84db639cae0d6cc10c4b80ccf64903b7b3f437cb58ad8e3d957c30c871f9666a7a7774808b4b56d6116959ea03fdc8b575ed98023b77b61c8a0
diff --git a/dev-python/dbusmock/dbusmock-0.18.2.ebuild b/dev-python/dbusmock/dbusmock-0.18.2.ebuild
new file mode 100644 (file)
index 0000000..8a4c347
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+MY_PN="python-${PN}"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Easily create mock objects on D-Bus for software testing"
+HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
+SRC_URI="https://github.com/martinpitt/${MY_PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="
+       dev-python/dbus-python[${PYTHON_USEDEP}]
+       dev-python/pygobject:3[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       >=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
+       test? (
+               dev-python/nose[${PYTHON_USEDEP}]
+       )"
+
+PATCHES=(
+       "${FILESDIR}"/0.18.2-disable-polkitd-tests.patch
+)
+
+python_test() {
+       nosetests --verbose || die "tests fail under ${EPYTHON}"
+}
+
+python_install_all() {
+       local DOCS=( NEWS README.rst )
+
+       distutils-r1_python_install_all
+}
diff --git a/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch
new file mode 100644 (file)
index 0000000..2f17c23
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/tests/test_polkitd.py b/tests/test_polkitd.py
+index f47fdfa..975878b 100644
+--- a/tests/test_polkitd.py
++++ b/tests/test_polkitd.py
+@@ -25,7 +25,7 @@ p.communicate()
+ have_pkcheck = (p.returncode == 0)
+ 
+ 
+-@unittest.skipUnless(have_pkcheck, 'pkcheck not installed')
++@unittest.skip
+ class TestPolkit(dbusmock.DBusTestCase):
+     '''Test mocking polkitd'''
+