depot/third_party/nixpkgs/pkgs/development/python-modules/libvirt/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

28 lines
658 B
Nix

{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
version = "8.8.0";
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-python";
rev = "v${version}";
sha256 = "sha256-UguqUsIfrql1UZeBoHLKXvLYuWicbJWamglkvqS++FI=";
};
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 ];
};
}