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