dev-python/pygobject: add 3.58.0

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1758
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-08-28 16:27:13 +03:00
committed by Sam James
parent 2504baebd7
commit eb95ef9dab
2 changed files with 87 additions and 0 deletions

View File

@@ -7,3 +7,4 @@ DIST pygobject-3.52.4_0a8b2c56331a31d7f7096faaa1c1c26467b51c15_pythoncapi-compat
DIST pygobject-3.54.5.tar.gz 1274658 BLAKE2B 7541502dd4d0f62680d12ebb00f1039c6b33e9c1996500a3d0e54c6c87d719e99e32469d68cfdb04e8e8eaed70e2461739ea176e7bf98100f2329c7084425b5e SHA512 0036068922de03dfa15335b29eb27a9cfd85310b66eae4eb6cb895c427a9fbf3c65462930e981f03b9394bede6fe97639e0bdbee640373188a9c51ad03b65041
DIST pygobject-3.56.2.tar.gz 1409059 BLAKE2B 9d0ea5b94edc966d8355169d85e79ea0446544f7560832e2be85314c30e739ed71efa877c9111a2a08a388edc9353b6ea5a8678acf681dcc1612ed62493bcaf3 SHA512 8be3ac43fad2aba79bfea05616f66511378fe9b316fe33d9c622af5c7b1ab260e4a513a5f6efe26e261eb6c05763391b327b58563cc551cbd2f25266e8a1826a
DIST pygobject-3.56.3.tar.gz 1411853 BLAKE2B 032644b8a7b3e366e7c8ea9943f5a63ddca27a1c2c43a007c7e0e15dff7611b0f210e0ca43fd1e9ed63aa74f9d346becc489ec943bbb6fd9da6af2ed8a3b97fb SHA512 7267e04c02436fb88eddac463546275c7ebda7295f4d250c27a37114a589676d340c0876ad953523c20dd52cfd7d8883cefd5c1b3dd7115a96645f1a32ba0d99
DIST pygobject-3.58.0.tar.gz 1408568 BLAKE2B 15b99639c01354f8dd2a2a946e00c80443b0c49e60b376b91cf0835b3e93837ab183386dff0587e5af984552cac232413e977874b0da21c2d3b49a144ce65b5d SHA512 8627b6e1f94a8a9ff4be4c6b1a585db74736d33259b84cd8eb1d38fc8e98374692658adcfb43042056b527761ce563fd66bf09ff916daba3b3384310a11a66c2

View File

@@ -0,0 +1,86 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=no
GNOME_TARBALL_SUFFIX="gz"
PYTHON_COMPAT=( python3_{12..15} )
inherit gnome.org meson virtualx xdg distutils-r1
DESCRIPTION="Python bindings for GObject Introspection"
HOMEPAGE="
https://pygobject.gnome.org/
https://gitlab.gnome.org/GNOME/pygobject/
"
LICENSE="LGPL-2.1+"
SLOT="3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
IUSE="+cairo test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/glib-2.80:2
>=dev-libs/gobject-introspection-1.84:=
dev-libs/libffi:=
cairo? (
>=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}]
x11-libs/cairo[glib]
)
"
DEPEND="
${RDEPEND}
test? (
>=app-accessibility/at-spi2-core-2.46.0[introspection]
dev-python/pytest[${PYTHON_USEDEP}]
x11-libs/gdk-pixbuf:2[introspection,jpeg]
x11-libs/gtk+:3[introspection]
x11-libs/pango[introspection]
)
"
BDEPEND="
virtual/pkgconfig
"
python_configure() {
local emesonargs=(
$(meson_feature cairo pycairo)
$(meson_use test tests)
-Dpython="${EPYTHON}"
)
meson_src_configure
}
python_compile() {
meson_src_compile
}
src_test() {
virtx distutils-r1_src_test
}
python_test() {
local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x XDG_CACHE_HOME="${T}/${EPYTHON}"
local _PYTEST_ADDOPTS=(
# see epytest in python-utils-r1.eclass
-vv -ra -l -o filterwarnings=
# test_python_calls_sync: timeout
--deselect tests/test_gdbus.py::TestGDBusClient::test_python_calls_sync
# test_pointer_array_struct_with_guint8: broken on BE but test is dodgy anyway, bug #978759
--deselect tests/test_gi.py::TestStructure::test_pointer_array_struct_with_guint8
)
local -x PYTEST_ADDOPTS="${_PYTEST_ADDOPTS[@]}"
meson_src_test --timeout-multiplier 3 || die "test for ${EPYTHON}"
}
python_install() {
meson_src_install
python_optimize
}