anchor.diff:    '';
   
     postConfigure = ''
  -    ${python3Packages.python.interpreter} setup.py configure --prefix=$out
  +    ${python3.interpreter} setup.py configure --prefix=$out
     '';
   
  -  setupPyGlobalFlags = [ "--no-update-icon-cache" ];
  +  setupPyGlobalFlags = [ "--no-update-icon-cache" "--no-compile-schemas" ];
   
     dontWrapGApps = true;
   
     preFixup = ''
  +    mkdir -p $out/share/glib-2.0/schemas
  +    cp $src/data/*.gschema.xml $out/share/glib-2.0/schemas/
  +
       gappsWrapperArgs+=(--set PYTHONPATH "$PYTHONPATH")
       # these are called from virt-install in initrdinject.py
       gappsWrapperArgs+=(--prefix PATH : "${makeBinPath [ cpio e2fsprogs file findutils gzip ]}")
  
positive.code: { lib, fetchurl, python3Packages, intltool, file
  , wrapGAppsHook, gtk-vnc, vte, avahi, dconf
  , gobject-introspection, libvirt-glib, system-libvirt
  , gsettings-desktop-schemas, libosinfo, gnome
  , gtksourceview4, docutils
  , spiceSupport ? true, spice-gtk ? null
  , cpio, e2fsprogs, findutils, gzip
  , cdrtools
  }:
  
  with lib;
  
  python3Packages.buildPythonApplication rec {
    pname = "virt-manager";
    version = "3.2.0";
  
    src = fetchurl {
      url = "https://releases.pagure.org/virt-manager/${pname}-${version}.tar.gz";
      sha256 = "11kvpzcmyir91qz0dsnk7748jbb4wr8mrc744w117qc91pcy6vrb";
    };
  
    nativeBuildInputs = [
  
negative.code:     gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
    ] ++ optional spiceSupport spice-gtk;
  
    propagatedBuildInputs = with python3.pkgs; [
      pygobject3 ipaddress libvirt libxml2 requests cdrtools
    ];
  
  