1{ 2 lib, 3 pythonAtLeast, 4 buildPythonPackage, 5 fetchurl, 6 libguestfs, 7 qemu, 8}: 9 10buildPythonPackage rec { 11 pname = "guestfs"; 12 version = "1.40.2"; 13 format = "setuptools"; 14 15 # FIXME: "error: implicit declaration of function 'PyEval_ThreadsInitialized'" 16 # https://bugzilla.redhat.com/show_bug.cgi?id=2343777 17 disabled = pythonAtLeast "3.13"; 18 19 src = fetchurl { 20 url = "http://download.libguestfs.org/python/guestfs-${version}.tar.gz"; 21 hash = "sha256-GCKwkhrIXPz0hPrwe3YrhlEr6TuDYQivDzpMlZ+CAzI="; 22 }; 23 24 propagatedBuildInputs = [ 25 libguestfs 26 qemu 27 ]; 28 29 # no tests 30 doCheck = false; 31 pythonImportsCheck = [ "guestfs" ]; 32 33 meta = with lib; { 34 homepage = "https://libguestfs.org/guestfs-python.3.html"; 35 description = "Use libguestfs from Python"; 36 license = licenses.lgpl2Plus; 37 maintainers = with maintainers; [ grahamc ]; 38 inherit (libguestfs.meta) platforms; 39 }; 40}