1 |
commit: ea5a43ab8d11a58410c4542c25cdd83c632688d1 |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 08:33:03 2019 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 08:33:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea5a43ab |
7 |
|
8 |
dev-python/dbusmock: version bump to 0.18.2 |
9 |
|
10 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
11 |
Bug: https://bugs.gentoo.org/659878 |
12 |
Bug: https://bugs.gentoo.org/656912 |
13 |
Bug: https://bugs.gentoo.org/636414 |
14 |
Bug: https://bugs.gentoo.org/649552 |
15 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
16 |
|
17 |
dev-python/dbusmock/Manifest | 1 + |
18 |
dev-python/dbusmock/dbusmock-0.18.2.ebuild | 45 ++++++++++++++++++++++ |
19 |
.../files/0.18.2-disable-polkitd-tests.patch | 13 +++++++ |
20 |
3 files changed, 59 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest |
23 |
index 2cc87933222..d8da470bc7d 100644 |
24 |
--- a/dev-python/dbusmock/Manifest |
25 |
+++ b/dev-python/dbusmock/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54 |
28 |
+DIST dbusmock-0.18.2.tar.gz 72031 BLAKE2B 44b46f05e48f1178fe95e44c83899bbef5bc64dcee856be1b332890893a5b901a03c236ad9a8cc6cf2ece83efbf5ec798551320a098736ff95c13951333ffaa3 SHA512 2421cea872e1d84db639cae0d6cc10c4b80ccf64903b7b3f437cb58ad8e3d957c30c871f9666a7a7774808b4b56d6116959ea03fdc8b575ed98023b77b61c8a0 |
29 |
|
30 |
diff --git a/dev-python/dbusmock/dbusmock-0.18.2.ebuild b/dev-python/dbusmock/dbusmock-0.18.2.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..8a4c3472176 |
33 |
--- /dev/null |
34 |
+++ b/dev-python/dbusmock/dbusmock-0.18.2.ebuild |
35 |
@@ -0,0 +1,45 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
42 |
+PYTHON_REQ_USE="xml(+)" |
43 |
+ |
44 |
+inherit distutils-r1 |
45 |
+ |
46 |
+MY_PN="python-${PN}" |
47 |
+MY_P="${MY_PN}-${PV}" |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
+DESCRIPTION="Easily create mock objects on D-Bus for software testing" |
51 |
+HOMEPAGE="https://github.com/martinpitt/python-dbusmock" |
52 |
+SRC_URI="https://github.com/martinpitt/${MY_PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz" |
53 |
+ |
54 |
+LICENSE="LGPL-3+" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
57 |
+IUSE="test" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
61 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}]" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ >=dev-python/setuptools-17.1[${PYTHON_USEDEP}] |
64 |
+ test? ( |
65 |
+ dev-python/nose[${PYTHON_USEDEP}] |
66 |
+ )" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}"/0.18.2-disable-polkitd-tests.patch |
70 |
+) |
71 |
+ |
72 |
+python_test() { |
73 |
+ nosetests --verbose || die "tests fail under ${EPYTHON}" |
74 |
+} |
75 |
+ |
76 |
+python_install_all() { |
77 |
+ local DOCS=( NEWS README.rst ) |
78 |
+ |
79 |
+ distutils-r1_python_install_all |
80 |
+} |
81 |
|
82 |
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 |
83 |
new file mode 100644 |
84 |
index 00000000000..2f17c233a3f |
85 |
--- /dev/null |
86 |
+++ b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch |
87 |
@@ -0,0 +1,13 @@ |
88 |
+diff --git a/tests/test_polkitd.py b/tests/test_polkitd.py |
89 |
+index f47fdfa..975878b 100644 |
90 |
+--- a/tests/test_polkitd.py |
91 |
++++ b/tests/test_polkitd.py |
92 |
+@@ -25,7 +25,7 @@ p.communicate() |
93 |
+ have_pkcheck = (p.returncode == 0) |
94 |
+ |
95 |
+ |
96 |
+-@××××××××.skipUnless(have_pkcheck, 'pkcheck not installed') |
97 |
++@××××××××.skip |
98 |
+ class TestPolkit(dbusmock.DBusTestCase): |
99 |
+ '''Test mocking polkitd''' |
100 |
+ |