2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 01:10:05 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2020-04-09 02:34:07 -07:00
|
|
|
version = "6.2.0";
|
2017-12-09 01:10:05 -08:00
|
|
|
|
2018-02-26 14:50:46 -08:00
|
|
|
src = assert version == libvirt.version; fetchgit {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "git://libvirt.org/libvirt-python.git";
|
2018-02-26 14:50:46 -08:00
|
|
|
rev = "v${version}";
|
2020-04-09 02:34:07 -07:00
|
|
|
sha256 = "0a8crk29rmnw1kcgi72crb7syacdk03lkl05yand5cxs0l65jwdl";
|
2017-12-09 01:10:05 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.libvirt.org/";
|
2017-12-09 01:10:05 -08:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|