From 17036309a34d7c37fdd0b54635b5da0727c59c69 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 6 Feb 2019 20:53:59 -0500 Subject: [PATCH 1/3] python3Packages.guestfs: init at 1.40.1 --- .../python-modules/guestfs/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/guestfs/default.nix 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/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; }; From 6c3df41c641437ac4365e54c8342180bbf6053fb Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 6 Feb 2019 20:58:45 -0500 Subject: [PATCH 2/3] diffoscope: 99 -> 110 --- pkgs/tools/misc/diffoscope/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 80e0cde7e54a..4e4e0c27d149 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 = [ From ddd96283fcbfd3b410d2026591c6abf1ff517899 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 6 Feb 2019 20:58:55 -0500 Subject: [PATCH 3/3] diffoscope: teach about guestfs --- pkgs/tools/misc/diffoscope/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 4e4e0c27d149..b4272dac5317 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -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