python310Packages.mutagen: Fix sphinx 6.0 compat

This commit is contained in:
Martin Weinelt
2023-03-03 23:56:30 +01:00
parent cf3963a5d4
commit 6449f679ea
@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
# docs
, python
@@ -32,6 +33,15 @@ buildPythonPackage rec {
sphinx-rtd-theme
];
patches = [
(fetchpatch {
# docs: Make extlinks compatible with sphinx 6.0
# https://github.com/quodlibet/mutagen/pull/590
url = "https://github.com/quodlibet/mutagen/commit/37b4e6bddc03e1f715425c418ea84bac15116907.patch";
hash = "sha256-CnGfHY4RhRhOLvlRTH/NZwzCnAL3VhU6xosuh6fkqGQ=";
})
];
postInstall = ''
${python.pythonForBuild.interpreter} setup.py build_sphinx --build-dir=$doc
'';