1{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
2
3buildPythonPackage rec {
4 pname = "libvirt";
5 version = "4.5.0";
6
7 src = assert version == libvirt.version; fetchgit {
8 url = git://libvirt.org/libvirt-python.git;
9 rev = "v${version}";
10 sha256 = "0w2rzkxv7jsq4670m0j5c6p4hpyi0r0ja6wd3wdvixcwc6hhx407";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14 buildInputs = [ libvirt lxml ];
15
16 checkInputs = [ nose ];
17 checkPhase = ''
18 nosetests
19 '';
20
21 meta = with stdenv.lib; {
22 homepage = http://www.libvirt.org/;
23 description = "libvirt Python bindings";
24 license = licenses.lgpl2;
25 maintainers = [ maintainers.fpletz ];
26 };
27}