diff --git a/pkgs/development/python-modules/python-barbicanclient/default.nix b/pkgs/development/python-modules/python-barbicanclient/default.nix index cefe9412e86e..e1e1952f153b 100644 --- a/pkgs/development/python-modules/python-barbicanclient/default.nix +++ b/pkgs/development/python-modules/python-barbicanclient/default.nix @@ -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