nixpkgs/pkgs/development/python-modules/libvirt/default.nix

29 lines
694 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
2021-01-26 18:25:01 +00:00
version = "7.0.0";
src = assert version == libvirt.version; fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-python";
2018-02-26 22:50:46 +00:00
rev = "v${version}";
2021-01-26 18:25:01 +00:00
sha256 = "0vdvpqiypxis8wny7q39qps050zi13l66pnpa47040q6bar0d4xw";
};
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 ];
};
}