Merge pull request #32499 from FRidh/libvirt

libvirt: 3.8.0 -> 3.10.0
This commit is contained in:
Franz Pletz 2017-12-11 04:52:08 +00:00 committed by GitHub
commit 963c3ef9f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 26 deletions

View file

@ -9,14 +9,14 @@
with stdenv.lib;
# if you update, also bump pythonPackages.libvirt or it will break
# if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> or it will break
stdenv.mkDerivation rec {
name = "libvirt-${version}";
version = "3.8.0";
version = "3.10.0";
src = fetchurl {
url = "http://libvirt.org/sources/${name}.tar.xz";
sha256 = "1y83z4jb2by6ara0nw4sivh7svqcrw97yfhqwdscxl4y10saisvk";
sha256 = "03kb37iv3dvvdlslznlc0njvjpmq082lczmsslz5p4fcwb50kwfz";
};
patches = [ ./build-on-bsd.patch ];

View file

@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchurl, python, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
version = "3.10.0";
src = assert version == libvirt.version; fetchurl {
url = "http://libvirt.org/sources/python/${pname}-python-${version}.tar.gz";
sha256 = "1l0fgqjnx76pzkhq540x9sf5fgzlrn0dpay90j2m4iq8nkclcbpw";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libvirt lxml ];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with stdenv.lib; {
homepage = http://www.libvirt.org/;
description = "libvirt Python bindings";
license = licenses.lgpl2;
maintainers = [ maintainers.fpletz ];
};
}

View file

@ -21936,29 +21936,8 @@ EOF
};
};
libvirt = let
version = "3.8.0";
in assert version == pkgs.libvirt.version; pkgs.stdenv.mkDerivation rec {
name = "libvirt-python-${version}";
src = pkgs.fetchurl {
url = "http://libvirt.org/sources/python/${name}.tar.gz";
sha256 = "02spx8kfcsnqwsshd7bk2plyic2lbpwzg16sf3csh0avck5akjsz";
};
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with self; [ python pkgs.libvirt lxml ];
buildPhase = "${python.interpreter} setup.py build";
installPhase = "${python.interpreter} setup.py install --prefix=$out";
meta = {
homepage = http://www.libvirt.org/;
description = "libvirt Python bindings";
license = licenses.lgpl2;
maintainers = [ maintainers.fpletz ];
};
libvirt = callPackage ../development/python-modules/libvirt {
inherit (pkgs) libvirt;
};
rpdb = buildPythonPackage rec {