28 lines
693 B
Nix
28 lines
693 B
Nix
{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "7.9.0";
|
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
owner = "libvirt";
|
|
repo = "libvirt-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cfCyQ3KTv0lYTZMriUhm6psBAcJJIcmR/M9V/lrLmVE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
checkInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://libvirt.org/python.html";
|
|
description = "libvirt Python bindings";
|
|
license = licenses.lgpl2;
|
|
maintainers = [ maintainers.fpletz ];
|
|
};
|
|
}
|