2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 10:10:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2019-06-29 02:06:32 +02:00
|
|
|
version = "5.4.0";
|
2017-12-09 10:10:05 +01:00
|
|
|
|
2018-02-26 23:50:46 +01:00
|
|
|
src = assert version == libvirt.version; fetchgit {
|
|
|
|
url = git://libvirt.org/libvirt-python.git;
|
|
|
|
rev = "v${version}";
|
2019-06-29 02:06:32 +02:00
|
|
|
sha256 = "0ja35z90i3m7vsjfpzfm7awkmja3h0150376i5pzmf2q8vp61fi5";
|
2017-12-09 10:10:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.libvirt.org/;
|
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|