1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pkg-config,
6 lxml,
7 libvirt,
8 nose,
9}:
10
11buildPythonPackage rec {
12 pname = "libvirt";
13 version = "10.0.0";
14 format = "setuptools";
15
16 src = fetchFromGitLab {
17 owner = "libvirt";
18 repo = "libvirt-python";
19 rev = "v${version}";
20 hash = "sha256-zl1Hfm7flRflNjIpLoLAlPDysYlieC05HEd/mzFW8pU=";
21 };
22
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [
25 libvirt
26 lxml
27 ];
28
29 nativeCheckInputs = [ nose ];
30 checkPhase = ''
31 nosetests
32 '';
33
34 meta = with lib; {
35 homepage = "https://libvirt.org/python.html";
36 description = "libvirt Python bindings";
37 license = licenses.lgpl2;
38 maintainers = [ maintainers.fpletz ];
39 };
40}