anchor.diff:      })
     ];
   
  -  src = fetchPypi {
  -    inherit version;
  -    pname = "weasyprint";
  -    sha256 = "sha256-EMyxfVXHMJa98e3T7+WMuFWwfkwwfZutTryaPxP/RYA=";
  -  };
  -
     meta = with lib; {
       homepage = "https://weasyprint.org/";
       description = "Converts web documents to PDF";
  
positive.code: { buildPythonPackage,
    fetchPypi,
    fetchpatch,
    pytestCheckHook,
    brotli,
    cairosvg,
    fonttools,
    pydyf,
    pyphen,
    cffi,
    cssselect,
    lxml,
    html5lib,
    tinycss,
    zopfli,
    glib,
    harfbuzz,
    pango,
    fontconfig,
    lib, stdenv,
    ghostscript,
    pytest,
    pytest-runner,
    pytest-isort,
    pytest-flake8,
    pytest-cov,
    isPy3k,
    substituteAll
  }:
  
  buildPythonPackage rec {
  
negative.code:   version = "53.4";
    disabled = !isPy3k;
  
    src = fetchPypi {
      inherit version;
      pname = "weasyprint";
      sha256 = "sha256-EMyxfVXHMJa98e3T7+WMuFWwfkwwfZutTryaPxP/RYA=";
    };
  
    postPatch = ''
      substituteInPlace pyproject.toml \
        --replace "--isort --flake8 --cov --no-cov-on-fail" ""
    '';
  
    disabledTests = [
      # needs the Ahem font (fails on macOS)
      "test_font_stretch"
    ];
  
    checkInputs = [
      pytestCheckHook
      ghostscript
    ];
  
    FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
  