nixpkgs/pkgs/development/python-modules/libvirt/5.9.0.nix
adisbladis 418af7d7aa
nixops: Fix build by disabling the libvirt backend if package marked as insecure
With this change it's possible to override the libvirt package used if you absolutely need it.
2021-02-08 16:43:42 +01:00

31 lines
677 B
Nix

{ lib, buildPythonPackage, fetchgit, pkg-config, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
version = "5.9.0";
src = fetchgit {
url = "git://libvirt.org/libvirt-python.git";
rev = "v${version}";
sha256 = "0qvr0s7yasswy1s5cvkm91iifk33pb8s7nbb38zznc46706b358r";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libvirt lxml ];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
passthru = {
inherit libvirt;
};
meta = with lib; {
homepage = "http://www.libvirt.org/";
description = "libvirt Python bindings";
license = licenses.lgpl2;
maintainers = [ maintainers.fpletz ];
};
}