linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / libvirt / default.nix
blob98b8a7c9e558548afd3c8c3019c6ea85104689e7
1 { lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
3 buildPythonPackage rec {
4   pname = "libvirt";
5   version = "7.0.0";
7   src = assert version == libvirt.version; fetchFromGitLab {
8     owner = "libvirt";
9     repo = "libvirt-python";
10     rev = "v${version}";
11     sha256 = "0vdvpqiypxis8wny7q39qps050zi13l66pnpa47040q6bar0d4xw";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ libvirt lxml ];
17   checkInputs = [ nose ];
18   checkPhase = ''
19     nosetests
20   '';
22   meta = with lib; {
23     homepage = "https://libvirt.org/python.html";
24     description = "libvirt Python bindings";
25     license = licenses.lgpl2;
26     maintainers = [ maintainers.fpletz ];
27   };