python3Packages.sphinx: do not use deprecated docutils 0.19 API

This commit is contained in:
Mauricio Collares
2022-07-21 22:35:33 +02:00
committed by Martin Weinelt
parent 3fe71fcbcf
commit 0a74993f68
@@ -3,6 +3,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
# propagatedBuildInputs
, babel
, alabaster
@@ -48,6 +49,15 @@ buildPythonPackage rec {
'';
};
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"