2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pbr,
|
|
|
|
setuptools,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-apidoc";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.5.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Ze/NkiEqX4I3FfuV7gmLRYprsJpe5hfZ7T3q2XF3zVU=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# break infite recursion, remove pytest 4 requirement
|
|
|
|
rm test-requirements.txt requirements.txt
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pbr
|
2024-01-25 14:12:00 +00:00
|
|
|
setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Check is disabled due to circular dependency of sphinx
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonNamespaces = [ "sphinxcontrib" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Sphinx extension for running sphinx-apidoc on each build";
|
|
|
|
homepage = "https://github.com/sphinx-contrib/apidoc";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|