commit: 0b4a48dfb79700d0e653b6d75724e5acccba1d5d Author: Brahmajit Das <listout <AT> listout <DOT> xyz> AuthorDate: Thu Mar 5 01:03:53 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 5 23:15:59 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b4a48df
dev-python/libvirt-python: add 12.1.0 Signed-off-by: Brahmajit Das <listout <AT> listout.xyz> Part-of: https://codeberg.org/gentoo/gentoo/pulls/218 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/libvirt-python/Manifest | 2 + .../libvirt-python/libvirt-python-12.1.0.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-python/libvirt-python/Manifest b/dev-python/libvirt-python/Manifest index 62f3676cc1cf..497bed041807 100644 --- a/dev-python/libvirt-python/Manifest +++ b/dev-python/libvirt-python/Manifest @@ -2,3 +2,5 @@ DIST libvirt_python-11.10.0.tar.gz 243286 BLAKE2B 7dbc2e2ea0329e4523805d9ef6c95d 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 +DIST libvirt_python-12.1.0.tar.gz 243658 BLAKE2B 828305549625449ccf0d3e48c5b3b7a9b266a6e43a3725d1918f9210df5ce213edc15524bf2c7310ae13678922b9f5ba6a4313d72f27cd2af3e97b4a12273524 SHA512 207702ae5ee1e18b4edc9020542346d62e7bdf21a1daa316171f75a6b8a9ea2b8075e2a2ba9aab4b295b48edb0d523605cee0ac4eedd8b7ca06729aab518ae65 +DIST libvirt_python-12.1.0.tar.gz.asc 833 BLAKE2B 3f5b0dcf325b43b99637eefeecff4c9a0bf96e1ecccc4c39d6f9ce050652f35f24e633b320afa8237ad29c569aa1a0b2fd5f40d42ce789db8a71b8c0e20efa20 SHA512 68c71bf84088ef5e20216312f3c196e519088d31e9952162bf16f5a7bb20210203f3f6bdfb8939bb595a46161f26ba05495bf749d4d25be58505cc8618d94c20 diff --git a/dev-python/libvirt-python/libvirt-python-12.1.0.ebuild b/dev-python/libvirt-python/libvirt-python-12.1.0.ebuild new file mode 100644 index 000000000000..bafdb779eb19 --- /dev/null +++ b/dev-python/libvirt-python/libvirt-python-12.1.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 +}
