diff --git a/pkgs/development/python-modules/guestfs/default.nix b/pkgs/development/python-modules/guestfs/default.nix new file mode 100644 index 000000000000..238a1e9980bd --- /dev/null +++ b/pkgs/development/python-modules/guestfs/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchurl, libguestfs, qemu }: + +buildPythonPackage rec { + pname = "guestfs"; + version = "1.40.1"; + + src = fetchurl { + url = "http://download.libguestfs.org/python/guestfs-${version}.tar.gz"; + sha256 = "06a4b5xf1rkhnzfvck91n0z9mlkrgy90s9na5a8da2g4p776lhkf"; + }; + + propagatedBuildInputs = [ libguestfs qemu ]; + + meta = with stdenv.lib; { + homepage = "http://libguestfs.org/guestfs-python.3.html"; + description = "Use libguestfs from Python"; + license = licenses.lgpl2Plus; + maintainers = with maintainers; [ grahamc ]; + }; +} diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 80e0cde7e54a..b4272dac5317 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -9,12 +9,12 @@ # Note: when upgrading this package, please run the list-missing-tools.sh script as described below! python3Packages.buildPythonApplication rec { name = "diffoscope-${version}"; - version = "99"; + version = "110"; src = fetchgit { url = "https://anonscm.debian.org/git/reproducible/diffoscope.git"; rev = "refs/tags/${version}"; - sha256 = "04a2sqv43g002b7s0crk9gnpdvf90j8j8p01b6shinxh6an8prs2"; + sha256 = "0rhjxigwxbqbqk7xv7n4m4rh693rg3cbp4x565jv68iy423mf2fb"; }; patches = [ @@ -43,6 +43,7 @@ python3Packages.buildPythonApplication rec { ] ++ lib.optionals enableBloat [ apktool cbfstool colord fpc ghc ghostscriptX giflib gnupg1 gnumeric imagemagick llvm jdk mono openssh pdftk poppler_utils tcpdump unoconv + python3Packages.guestfs ]; doCheck = false; # Calls 'mknod' in squashfs tests, which needs root diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 63d3e962b236..531488395946 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -406,6 +406,8 @@ in { gssapi = callPackage ../development/python-modules/gssapi { }; + guestfs = callPackage ../development/python-modules/guestfs { }; + h5py = callPackage ../development/python-modules/h5py { hdf5 = pkgs.hdf5; };