anchor.diff:    outputDevdoc = "out";
   
     nativeBuildInputs = [
  +    pkg-config
       gettext
       meson
       ninja
  +    libxslt # for xsltproc
     ];
   
     buildInputs = [
       docbook_xml_dtd_43
       docbook_xsl
       libxslt
  -    pkgconfig
  -    python3
  -    python3.pkgs.pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
  -    libxml2Python
  -  ]
  -  ++ stdenv.lib.optional withDblatex dblatex
  -  ;
  +  ] ++ stdenv.lib.optionals withDblatex [
  +    dblatex
  +  ];
  +
  +  pythonPath = with python3.pkgs; [
  +    pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
  +    (anytree.override { withGraphviz = false; })
  +    lxml
  +  ];
   
     mesonFlags = [
       "-Dtests=false"
       "-Dyelp_manual=false"
     ];
   
  -  # Make pygments available for binaries, python.withPackages creates a wrapper
  -  # but scripts are not allowed in shebangs so we link it into sys.path.
  -  postInstall = ''
  -    ln -s ${python3.pkgs.pygments}/${python3.sitePackages}/* $out/share/gtk-doc/python/
  -  '';
  -
     doCheck = false; # requires a lot of stuff
     doInstallCheck = false; # fails
  +
  +  postFixup = ''
  +    # Do not propagate Python
  +    substituteInPlace $out/nix-support/propagated-build-inputs \
  +      --replace "${python3}" ""
  +  '';
   
     passthru = {
       # Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
  
positive.code: , withDblatex ? false, dblatex
  }:
  
  stdenv.mkDerivation rec {
    pname = "gtk-doc";
    version = "1.32";
  
    src = fetchFromGitLab {
      domain = "gitlab.gnome.org";
  
negative.code: , fetchFromGitLab
  , meson
  , ninja
  , pkg-config
  , python3
  , docbook_xml_dtd_43
  , docbook_xsl
  , libxslt
  