1{ lib, buildPythonPackage, fetchurl, libguestfs, qemu }:
2
3buildPythonPackage rec {
4 pname = "guestfs";
5 version = "1.40.1";
6
7 src = fetchurl {
8 url = "http://download.libguestfs.org/python/guestfs-${version}.tar.gz";
9 sha256 = "06a4b5xf1rkhnzfvck91n0z9mlkrgy90s9na5a8da2g4p776lhkf";
10 };
11
12 propagatedBuildInputs = [ libguestfs qemu ];
13
14 # no tests
15 doCheck = false;
16 pythonImportsCheck = [ "guestfs" ];
17
18 meta = with lib; {
19 homepage = "https://libguestfs.org/guestfs-python.3.html";
20 description = "Use libguestfs from Python";
21 license = licenses.lgpl2Plus;
22 maintainers = with maintainers; [ grahamc ];
23 inherit (libguestfs.meta) platforms;
24 };
25}