python311Packages.python-barbicanclient: build manpage with sphinxHook

This commit is contained in:
Anthony ROUSSEL
2024-07-27 20:48:34 +02:00
parent e36e9f5733
commit 3dbc8510cc
@@ -4,6 +4,7 @@
cliff,
fetchFromGitea,
keystoneauth1,
openstackdocstheme,
oslo-i18n,
oslo-serialization,
oslo-utils,
@@ -12,6 +13,8 @@
requests-mock,
requests,
setuptools,
sphinxcontrib-apidoc,
sphinxHook,
stestr,
}:
@@ -32,11 +35,22 @@ buildPythonPackage rec {
env.PBR_VERSION = version;
postPatch = ''
# Disable rsvgconverter not needed to build manpage
substituteInPlace doc/source/conf.py \
--replace-fail "'sphinxcontrib.rsvgconverter'," "#'sphinxcontrib.rsvgconverter',"
'';
build-system = [
openstackdocstheme
pbr
setuptools
sphinxHook
sphinxcontrib-apidoc
];
sphinxBuilders = [ "man" ];
dependencies = [
cliff
keystoneauth1