mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
29 lines
694 B
Nix
29 lines
694 B
Nix
{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "7.10.0";
|
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
owner = "libvirt";
|
|
repo = "libvirt-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-I1FNjNwWRyDAUSq2Co9EnjAbzKQtS0Rx8vHgPsFzSYw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|