1{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
2
3buildPythonPackage rec {
4 pname = "libvirt";
5 version = "9.9.0";
6
7 src = fetchFromGitLab {
8 owner = "libvirt";
9 repo = "libvirt-python";
10 rev = "v${version}";
11 hash = "sha256-cajKzRRhKCUKWm+1p3xvCyEbVB2R/70WY584o7V+XaY=";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libvirt lxml ];
16
17 nativeCheckInputs = [ nose ];
18 checkPhase = ''
19 nosetests
20 '';
21
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 };
28}