nixpkgs/pkgs/development/python-modules/libvirt/default.nix
Bas van Dijk af8409fc0a libvirt: fetch sources from gitlab
That seems to be the official repository now.
2020-10-01 10:55:56 +02:00

28 lines
695 B
Nix

{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
version = "6.6.0";
src = assert version == libvirt.version; fetchgit {
url = "https://gitlab.com/libvirt/libvirt-python.git";
rev = "v${version}";
sha256 = "0jj6b2nlx7qldwbvixz74abn3p0sq4lkf6ak74vynrv5xvlycb9v";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libvirt lxml ];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with stdenv.lib; {
homepage = "https://libvirt.org/python.html";
description = "libvirt Python bindings";
license = licenses.lgpl2;
maintainers = [ maintainers.fpletz ];
};
}