Files
nixpkgs/pkgs/development/python-modules/libvirt/default.nix
Philipp Schuster d93b8af5f1 libvirt: 12.1.0 -> 12.2.0
Updated done using:

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

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com#
2026-04-01 17:04:34 +02:00

49 lines
916 B
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
pkg-config,
lxml,
libvirt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "libvirt";
version = "12.2.0";
pyproject = true;
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-python";
tag = "v${version}";
hash = "sha256-ACnRYDUb+1J7ZDFnuvktkwLGxwi91l2ursKG/NPt62o=";
};
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 ];
};
}