anchor.diff:      '';
     };
   
  -  patches = [
  -    # https://github.com/sphinx-doc/sphinx/pull/10624
  -    (fetchpatch {
  -      name = "avoid-deprecated-docutils-0.19-api.patch";
  -      sha256 = "sha256-QIrLkxnexNcfuI00UOeCpAamMLqqt4wxoVY1VA72jIw=";
  -      url = "https://github.com/sphinx-doc/sphinx/commit/8d99168794ab8be0de1e6281d1b76af8177acd3d.patch";
  -    })
  -  ];
  -
     postPatch = ''
  -    substituteInPlace setup.py \
  -      --replace "docutils>=0.14,<0.19" "docutils>=0.14"
  -
       # remove impurity caused by date inclusion
       # https://github.com/sphinx-doc/sphinx/blob/master/setup.cfg#L4-L6
       substituteInPlace setup.cfg \
  
positive.code:   ];
  
    checkInputs = [
      html5lib
      pytestCheckHook
    ] ++ lib.optionals (pythonOlder "3.8") [
      typed-ast
    ];
  
    disabledTests = [
      # requires network access
  
negative.code: , sphinxcontrib-qthelp
  , sphinxcontrib-serializinghtml
  , sphinxcontrib-websupport
  
  # check phase
  , cython
  , html5lib
  , pytestCheckHook
  , typed-ast
  