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";
|
2020-04-09 09:34:07 +00:00
|
|
|
version = "6.2.0";
|
2017-12-09 09:10:05 +00:00
|
|
|
|
2018-02-26 22:50:46 +00:00
|
|
|
src = assert version == libvirt.version; fetchgit {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "git://libvirt.org/libvirt-python.git";
|
2018-02-26 22:50:46 +00:00
|
|
|
rev = "v${version}";
|
2020-04-09 09:34:07 +00:00
|
|
|
sha256 = "0a8crk29rmnw1kcgi72crb7syacdk03lkl05yand5cxs0l65jwdl";
|
2017-12-09 09:10:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.libvirt.org/";
|
2017-12-09 09:10:05 +00:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|