diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-03-03 13:42:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-03-03 13:42:34 +0000 |
commit | 066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (patch) | |
tree | 3cb05783d73b2c33589ba305144a31c718e123cd /dev-python/dbusmock | |
parent | 16449a80e28af2209916cc66d19c9a44ca2b90d9 (diff) |
gentoo resync : 03.03.2019
Diffstat (limited to 'dev-python/dbusmock')
-rw-r--r-- | dev-python/dbusmock/Manifest | 3 | ||||
-rw-r--r-- | dev-python/dbusmock/dbusmock-0.18.2.ebuild | 45 | ||||
-rw-r--r-- | dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch | 13 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest index 89c9d3d359e3..8463c3a3b594 100644 --- a/dev-python/dbusmock/Manifest +++ b/dev-python/dbusmock/Manifest @@ -1,5 +1,8 @@ AUX 0.16.9-disable-style-tests.patch 502 BLAKE2B bc082ee45ac39a3457457d2d7d92809765ef27eb5d160e44546036223a511ce799e6be8abcfa5b7444619dc62188ab0b30f4b23a23b608e93c9054cd93253223 SHA512 1d9f957a74b767db9355380437233167e1c2e6957dd993843ad7eaac3f0cfb9fad739b9238207d60db203bf6daed6f1b5ce9373ef1a4085431845e8f8f9b6147 AUX 0.16.9-replace-dbus-launch.patch 2851 BLAKE2B ddbfe3ffb7a5b55af448e5312340a83587ec7aa7613111caad4c9c54df4d2c05f6b0efb755262044e749d1d0c6ed2a289b02103f81518bd6ea24da7181bc71e0 SHA512 43fc52f453b086b59f854677eafda955ddd1e6a448579ac60de7288f6f1c8e8e029f5af12486ef6c14ba01f41fd10785c7bb076dcf4968349811be47c0b56073 +AUX 0.18.2-disable-polkitd-tests.patch 372 BLAKE2B bb9b33df485c635a080c41d4bea5360cf6a128a2f569782a51525c1ac9e6972bd03188f9777b1685f04900d48f2e554507db7c8b755de02c0a07de8defa26f05 SHA512 a105bb67702ef10d578e4df723452f060248287e9fc394754257c036ba0c6b186f90f5849a37e32e57cd70f16bbb73d0b8f84d9d153e1649d3ec5ab147dd6183 DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54 +DIST dbusmock-0.18.2.tar.gz 72031 BLAKE2B 44b46f05e48f1178fe95e44c83899bbef5bc64dcee856be1b332890893a5b901a03c236ad9a8cc6cf2ece83efbf5ec798551320a098736ff95c13951333ffaa3 SHA512 2421cea872e1d84db639cae0d6cc10c4b80ccf64903b7b3f437cb58ad8e3d957c30c871f9666a7a7774808b4b56d6116959ea03fdc8b575ed98023b77b61c8a0 EBUILD dbusmock-0.16.9.ebuild 1071 BLAKE2B c4d16f3429b4316ff7fe95b6eeba4159632caf8bd37673a5c66ed9ad56d4076e855384c3c95b753af84ed2993602014c4587aa9134495e7b567ecde3d710f71a SHA512 23eb543d8313ae846b78bdd405e3e5a5a2bc827b6cc76d14cd626c3807aba798646f946e339e16dbcf6112e42674f12557d8d7b7660a26792c5695bc9e9f6255 +EBUILD dbusmock-0.18.2.ebuild 1053 BLAKE2B b744900e2b7b81b7e1741901bf93d4cdfe04abd174ee93fc585b408c60dad3deaf3daf92d34f10945976f0f903d84c92790fe9cfc4f77b14e4767e250cdcd231 SHA512 56a821d3e865674a8b9cfa13c47579bffdc108d958bc7137e58addf5af32b9f57d54d0d45d96883368791ad5886febaf261779e330c97ea9e7f70dfc45dec958 MISC metadata.xml 253 BLAKE2B a1efbd3751efaa83ee173f557ec1c8a4497a90b60896cf5a7a07da40b4f94a7a299ca0385477e82b2f5e5dbdf9afa482ccbe21f35ef44214e9c451d764b65529 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 diff --git a/dev-python/dbusmock/dbusmock-0.18.2.ebuild b/dev-python/dbusmock/dbusmock-0.18.2.ebuild new file mode 100644 index 000000000000..8a4c34721766 --- /dev/null +++ b/dev-python/dbusmock/dbusmock-0.18.2.ebuild @@ -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 index 000000000000..2f17c233a3f7 --- /dev/null +++ b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch @@ -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''' + |