summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-08-17 13:07:51 +0200
committerMichał Górny <mgorny@gentoo.org>2021-08-18 09:56:56 +0200
commitd77d45673e5909170d6892c8347d5075a5efad58 (patch)
tree129a5565353d45e7979046ad109fda3f2e392036 /dev-python/python-dbusmock
parentMove dev-python/{cfn-python-lint → cfn-lint} (diff)
downloadgentoo-d77d45673e5909170d6892c8347d5075a5efad58.tar.gz
gentoo-d77d45673e5909170d6892c8347d5075a5efad58.tar.bz2
gentoo-d77d45673e5909170d6892c8347d5075a5efad58.zip
Move dev-python/{dbusmock → python-dbusmock}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-dbusmock')
-rw-r--r--dev-python/python-dbusmock/Manifest1
-rw-r--r--dev-python/python-dbusmock/metadata.xml16
-rw-r--r--dev-python/python-dbusmock/python-dbusmock-0.23.1.ebuild33
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/python-dbusmock/Manifest b/dev-python/python-dbusmock/Manifest
new file mode 100644
index 000000000000..92ec5980baea
--- /dev/null
+++ b/dev-python/python-dbusmock/Manifest
@@ -0,0 +1 @@
+DIST python-dbusmock-0.23.1.tar.gz 79964 BLAKE2B 60140997f7a9c196d4c38100a975550d6a4745344fde9084ca5a56881035c09cfd56387897a7e409e35aecbc759f01b8f4953b8a5cdda4bfbe70d80cd01b8332 SHA512 933205c770f82aef623e571d9d806b6d639467c977ca326718ff475f41e309ef25e9a8f1cd8439e181edbafeb6513af7b73dfb938b3abfc7d5f63b6b5ffa9fc9
diff --git a/dev-python/python-dbusmock/metadata.xml b/dev-python/python-dbusmock/metadata.xml
new file mode 100644
index 000000000000..142adb28d26c
--- /dev/null
+++ b/dev-python/python-dbusmock/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">python-dbusmock</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-dbusmock/python-dbusmock-0.23.1.ebuild b/dev-python/python-dbusmock/python-dbusmock-0.23.1.ebuild
new file mode 100644
index 000000000000..082b1a20d912
--- /dev/null
+++ b/dev-python/python-dbusmock/python-dbusmock-0.23.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Easily create mock objects on D-Bus for software testing"
+HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
+SRC_URI="
+ https://github.com/martinpitt/python-dbusmock/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
+
+RDEPEND="
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]"
+
+distutils_enable_tests unittest
+
+src_prepare() {
+ # needed for unittest discovery
+ > tests/__init__.py || die
+ # linter tests, fragile to newer linter versions
+ rm tests/test_code.py || die
+
+ distutils-r1_src_prepare
+}