2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchgit, pkg-config, lxml, libvirt, nose }:
|
2020-02-27 06:53:31 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2020-03-06 10:16:33 +01:00
|
|
|
version = "5.9.0";
|
2020-02-27 06:53:31 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "git://libvirt.org/libvirt-python.git";
|
2020-02-27 06:53:31 +01:00
|
|
|
rev = "v${version}";
|
2020-03-06 10:16:33 +01:00
|
|
|
sha256 = "0qvr0s7yasswy1s5cvkm91iifk33pb8s7nbb38zznc46706b358r";
|
2020-02-27 06:53:31 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-02-27 06:53:31 +01:00
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-02-08 16:00:53 +01:00
|
|
|
passthru = {
|
|
|
|
inherit libvirt;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.libvirt.org/";
|
2020-02-27 06:53:31 +01:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|