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