Merge pull request #32499 from FRidh/libvirt

libvirt: 3.8.0 -> 3.10.0

authored by Franz Pletz and committed by GitHub 963c3ef9 8a149533

+31 -26
+3 -3
pkgs/development/libraries/libvirt/default.nix
··· 9 10 with stdenv.lib; 11 12 - # if you update, also bump pythonPackages.libvirt or it will break 13 stdenv.mkDerivation rec { 14 name = "libvirt-${version}"; 15 - version = "3.8.0"; 16 17 src = fetchurl { 18 url = "http://libvirt.org/sources/${name}.tar.xz"; 19 - sha256 = "1y83z4jb2by6ara0nw4sivh7svqcrw97yfhqwdscxl4y10saisvk"; 20 }; 21 22 patches = [ ./build-on-bsd.patch ];
··· 9 10 with stdenv.lib; 11 12 + # if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> or it will break 13 stdenv.mkDerivation rec { 14 name = "libvirt-${version}"; 15 + version = "3.10.0"; 16 17 src = fetchurl { 18 url = "http://libvirt.org/sources/${name}.tar.xz"; 19 + sha256 = "03kb37iv3dvvdlslznlc0njvjpmq082lczmsslz5p4fcwb50kwfz"; 20 }; 21 22 patches = [ ./build-on-bsd.patch ];
+26
pkgs/development/python-modules/libvirt/default.nix
···
··· 1 + { stdenv, buildPythonPackage, fetchurl, python, pkgconfig, lxml, libvirt, nose }: 2 + 3 + buildPythonPackage rec { 4 + pname = "libvirt"; 5 + version = "3.10.0"; 6 + 7 + src = assert version == libvirt.version; fetchurl { 8 + url = "http://libvirt.org/sources/python/${pname}-python-${version}.tar.gz"; 9 + sha256 = "1l0fgqjnx76pzkhq540x9sf5fgzlrn0dpay90j2m4iq8nkclcbpw"; 10 + }; 11 + 12 + nativeBuildInputs = [ pkgconfig ]; 13 + buildInputs = [ libvirt lxml ]; 14 + 15 + checkInputs = [ nose ]; 16 + checkPhase = '' 17 + nosetests 18 + ''; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = http://www.libvirt.org/; 22 + description = "libvirt Python bindings"; 23 + license = licenses.lgpl2; 24 + maintainers = [ maintainers.fpletz ]; 25 + }; 26 + }
+2 -23
pkgs/top-level/python-packages.nix
··· 21936 }; 21937 }; 21938 21939 - libvirt = let 21940 - version = "3.8.0"; 21941 - in assert version == pkgs.libvirt.version; pkgs.stdenv.mkDerivation rec { 21942 - name = "libvirt-python-${version}"; 21943 - 21944 - src = pkgs.fetchurl { 21945 - url = "http://libvirt.org/sources/python/${name}.tar.gz"; 21946 - sha256 = "02spx8kfcsnqwsshd7bk2plyic2lbpwzg16sf3csh0avck5akjsz"; 21947 - }; 21948 - 21949 - nativeBuildInputs = [ pkgs.pkgconfig ]; 21950 - buildInputs = with self; [ python pkgs.libvirt lxml ]; 21951 - 21952 - buildPhase = "${python.interpreter} setup.py build"; 21953 - 21954 - installPhase = "${python.interpreter} setup.py install --prefix=$out"; 21955 - 21956 - meta = { 21957 - homepage = http://www.libvirt.org/; 21958 - description = "libvirt Python bindings"; 21959 - license = licenses.lgpl2; 21960 - maintainers = [ maintainers.fpletz ]; 21961 - }; 21962 }; 21963 21964 rpdb = buildPythonPackage rec {
··· 21936 }; 21937 }; 21938 21939 + libvirt = callPackage ../development/python-modules/libvirt { 21940 + inherit (pkgs) libvirt; 21941 }; 21942 21943 rpdb = buildPythonPackage rec {