Files
Philipp Schuster 041b4bbdb7 libvirt: 12.4.0 -> 12.6.0
Updated done using:

`$ nix-shell maintainers/scripts/update.nix --argstr package libvirt`

Upstream changelog: https://libvirt.org/news.html

The additional change in package.nix is caused by a upstream change [0]
that first appeared in 12.6.0. Although the commit message [0] says
the libvirtd driver option should be sufficient to turn this on, this
seems not to be the case.

[0] 4d7cfb4cdf

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
2026-08-10 15:55:55 +02:00

49 lines
923 B
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
pkg-config,
lxml,
libvirt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "libvirt-python";
version = "12.6.0";
pyproject = true;
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-python";
tag = "v${version}";
hash = "sha256-BJGXIc3Oggwod4d+JT7ag///oQIErqHVnORhn9CUUr0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
'';
build-system = [ setuptools ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libvirt
lxml
];
pythonImportsCheck = [ "libvirt" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://libvirt.org/python.html";
description = "Libvirt Python bindings";
license = lib.licenses.lgpl2;
maintainers = [ lib.maintainers.fpletz ];
};
}