8ac0f575d9
including parallel bumps of pythonPackages.libvirt and perlPackages.SysVirt also include patches for CVE-2019-10161, CVE-2019-10166, CVE-2019-10167 and CVE-2019-10168
28 lines
674 B
Nix
28 lines
674 B
Nix
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "5.4.0";
|
|
|
|
src = assert version == libvirt.version; fetchgit {
|
|
url = git://libvirt.org/libvirt-python.git;
|
|
rev = "v${version}";
|
|
sha256 = "0ja35z90i3m7vsjfpzfm7awkmja3h0150376i5pzmf2q8vp61fi5";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|