2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 09:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2018-11-05 20:11:42 +00:00
|
|
|
version = "4.10.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}";
|
2018-11-05 20:11:42 +00:00
|
|
|
sha256 = "184gd857fkks9ivh4zzbmva2fs2dfxg9lihvhfrwyd2pxflglvyf";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|