1{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }: 2 3buildPythonPackage rec { 4 pname = "libvirt"; 5 version = "8.8.0"; 6 7 src = fetchFromGitLab { 8 owner = "libvirt"; 9 repo = "libvirt-python"; 10 rev = "v${version}"; 11 sha256 = "sha256-UguqUsIfrql1UZeBoHLKXvLYuWicbJWamglkvqS++FI="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ libvirt lxml ]; 16 17 checkInputs = [ nose ]; 18 checkPhase = '' 19 nosetests 20 ''; 21 22 meta = with lib; { 23 homepage = "https://libvirt.org/python.html"; 24 description = "libvirt Python bindings"; 25 license = licenses.lgpl2; 26 maintainers = [ maintainers.fpletz ]; 27 }; 28}