2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 09:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2019-05-05 22:58:11 +01:00
|
|
|
version = "5.3.0";
|
2017-12-09 09:10:05 +00:00
|
|
|
|
2018-02-26 22:50:46 +00:00
|
|
|
src = assert version == libvirt.version; fetchgit {
|
|
|
|
url = git://libvirt.org/libvirt-python.git;
|
|
|
|
rev = "v${version}";
|
2019-05-05 22:58:11 +01:00
|
|
|
sha256 = "1l2a0gxmf071rd198c1z0ls3idr30i0aarf04bi9v705zdv90sxa";
|
2017-12-09 09:10:05 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|