commit: 34f327d2c9582f730c1ca823585b7773a148c4be Author: Brahmajit Das <listout <AT> listout <DOT> xyz> AuthorDate: Mon Jan 19 16:20:37 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 25 03:42:32 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34f327d2
dev-python/libvirt-python: add 12.0.0 Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/45444 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/libvirt-python/Manifest | 2 + .../libvirt-python/libvirt-python-12.0.0.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-python/libvirt-python/Manifest b/dev-python/libvirt-python/Manifest index 89b8bf5e5d31..62f3676cc1cf 100644 --- a/dev-python/libvirt-python/Manifest +++ b/dev-python/libvirt-python/Manifest @@ -1,2 +1,4 @@ DIST libvirt_python-11.10.0.tar.gz 243286 BLAKE2B 7dbc2e2ea0329e4523805d9ef6c95d96af7eb7d8d0ad1cc99d68b258ddcb27eb26dbbfefd10ecda1a093594b309ffbc821cc303a71e87a91f6a7802d7f5222a0 SHA512 aa0156face7766c8d2faa053ae8729059bce3041899e3f545e90683d70f2809c782eff15dc1bca42493dd79bc263523d21d3e671c7c3559f127e3002dc8aa24b DIST libvirt_python-11.10.0.tar.gz.asc 833 BLAKE2B 664adc7d6bc30160ddd5e1fd1d79db742827169970de483cf9a3a5a0922dbe58c0a7e1b3102573e6555f817b851a4a7d8afdcf96d06000a94cf4b66a04843849 SHA512 c28d5ef9ec68d4a423684bddb4ec91f22f1951193f5519ae3931aba52d6d5b32273efaecbf44e1d0977569038d1bfa97200124dc10cd10d49e9eb914dd8b264c +DIST libvirt_python-12.0.0.tar.gz 243300 BLAKE2B d108a6426aca39276ac54938af97f8f609ac13aac6164b73a501dadfedf47a2a37a33aa5e3b83ea45940273c9428608fadc9a6c6382ee762fb60df5a0df2e41c SHA512 85607f5858e7600348e2d1edd15ddd05e1d06f7bd1bae70026decccf1b551dc89ae2671f715af2beefa5dee45650cfccb339dd11329dc397b52924bd10fe9188 +DIST libvirt_python-12.0.0.tar.gz.asc 833 BLAKE2B 6a365dcf6e4cac2211449674111c8d2f318a3f4a0fa8123a59b6b70b690f9527708374232fdfff5d1fc795457e04a4f10bc52b70dbadabecc7086580c1f11c04 SHA512 e71b2167be4ec3138cdd70731cfae2c5d8e16fd0b11916aa1ec76f315d3231099128a1906b3c33ac4e137cf9c53534b264e84152bdb37c035f54167db8fc2a2b diff --git a/dev-python/libvirt-python/libvirt-python-12.0.0.ebuild b/dev-python/libvirt-python/libvirt-python-12.0.0.ebuild new file mode 100644 index 000000000000..bafdb779eb19 --- /dev/null +++ b/dev-python/libvirt-python/libvirt-python-12.0.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Packages which get releases together: +# app-emacs/nxml-libvirt-schemas +# dev-python/libvirt-python +# dev-perl/Sys-Virt +# app-emulation/libvirt +# Please bump them together! + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) +inherit distutils-r1 verify-sig + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-python.git" + RDEPEND="app-emulation/libvirt:=" +else + MY_P="${P/-/_}" + SRC_URI="https://download.libvirt.org/python/${MY_P}.tar.gz + verify-sig? ( https://download.libvirt.org/python/${MY_P}.tar.gz.asc )" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + RDEPEND="app-emulation/libvirt:0/${PV}" + S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="libvirt Python bindings" +HOMEPAGE="https://www.libvirt.org" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="examples test" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + ) + verify-sig? ( sec-keys/openpgp-keys-libvirt ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libvirt.org.asc + +distutils_enable_tests pytest + +python_compile() { + # setuptools is broken for C extensions, bug #907718 + distutils-r1_python_compile -j1 +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +}
