commit:     42743be527a4b78389fd4183de6ea558e39844bf
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 30 15:51:12 2026 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 30 15:56:43 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42743be5

dev-python/python-dbusmock: add 0.38.1

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/python-dbusmock/Manifest                |  2 +
 .../python-dbusmock/python-dbusmock-0.38.1.ebuild  | 54 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-python/python-dbusmock/Manifest 
b/dev-python/python-dbusmock/Manifest
index 9fb36d1dd15e..7f8f0dd8cfb9 100644
--- a/dev-python/python-dbusmock/Manifest
+++ b/dev-python/python-dbusmock/Manifest
@@ -1,3 +1,5 @@
 DIST python_dbusmock-0.37.1.tar.gz 107458 BLAKE2B 
0a7d2675c2f3fb9206b1826fa2ea2ca22340318ffdabd08cf1f4841502354833ac73537fa5f44e27002a80a0d7574a08a3e73cf817042497d33426560907f390
 SHA512 
ddaa5d99da0ee70a45c94077c1c9925b979c39c338ecb5856037c24121fe181884c7f7e5d8c032e764455d0628834d2075474a35346fe37de05fbbb548b690ff
 DIST python_dbusmock-0.37.2.tar.gz 107498 BLAKE2B 
cbc67d763be08b7010bab45b523b390c285f8c8f634140973b17f0d3be402da0d2bf12fe1365f8e2b3e9175c4cf62126ae002b215af479e36eac311702409cfd
 SHA512 
f3f181ff8c883b884fe855e7475b219692c5ab0d2255a84036d313c49523a8b8e5dfae2ce72c19e8f79201951efe0204ea72a6441fc54a26dbd2e4dcd3c0ec64
 DIST python_dbusmock-0.37.2.tar.gz.provenance 9405 BLAKE2B 
c15a12443386b899acaa325ea5bb8df97cd5009c3750b600a48b19a5a75ea942ed0e03ed9b4ed1ca05687f72b725e8735e58cd3eca1e7cf480152880d576ed35
 SHA512 
281a0680d37c5bda6a80814012284a89b34f3aea1c4d623072a8a007fc70d96c767947a17ecede1f354ae62590ab784cd3bd44acad19fb3ca9b01d4e8b9e9681
+DIST python_dbusmock-0.38.1.tar.gz 108144 BLAKE2B 
fc0353759e4b69675af4edcf4d3824bee007ec77ae903508dcc03cee6df24f527e9fc819503ee4bdc67e880d215bb4fce71c183b5fc24fc2a0d38bc1739b7b1c
 SHA512 
3bfd069f977171045338bd76862660a0e088e99aa000261fe2d447d8576cecdf249579162eae54ad21bdd4a1ad3421da13b5ee30e347d813990f55288c09b85e
+DIST python_dbusmock-0.38.1.tar.gz.provenance 9593 BLAKE2B 
ef364b3158a1c6ab670bdff39e7c18f384aa96e841eec525ce0e81d45826825edf39b9a147563ac343b17dc0a21395fdf5ecb89ee0e13df3e6750faf9c5480e9
 SHA512 
0a052310133b95b03eded22314b5f2a936c2ca1b57f3725eadc639449c4c6d64c9811d2d260b84db29762874b574faa930c2dd9e903ae008121f4ca22ecaed9d

diff --git a/dev-python/python-dbusmock/python-dbusmock-0.38.1.ebuild 
b/dev-python/python-dbusmock/python-dbusmock-0.38.1.ebuild
new file mode 100644
index 000000000000..42340fd65ead
--- /dev/null
+++ b/dev-python/python-dbusmock/python-dbusmock-0.38.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/martinpitt/python-dbusmock
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Easily create mock objects on D-Bus for software testing"
+HOMEPAGE="
+       https://github.com/martinpitt/python-dbusmock/
+       https://pypi.org/project/python-dbusmock/
+"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
+
+RDEPEND="
+       dev-python/dbus-python[${PYTHON_USEDEP}]
+       dev-python/pygobject:3[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               sys-power/upower
+       )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+EPYTEST_IGNORE=(
+       # linter tests, fragile to newer linter versions
+       tests/test_code.py
+)
+
+src_prepare() {
+       # dev-python/dbus-python uses autotools, so no .dist-info there
+       sed -i '/dbus-python/d' pyproject.toml setup.cfg || die
+
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       # tests are fragile to long socket paths
+       local -x TMPDIR=/tmp
+       # Tests break if XDG_DATA_DIRS is modified by flatpak install
+       unset XDG_DATA_DIRS
+       epytest
+}

Reply via email to