1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pbr,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "sphinxcontrib-apidoc";
11 version = "0.5.0";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-Ze/NkiEqX4I3FfuV7gmLRYprsJpe5hfZ7T3q2XF3zVU=";
17 };
18
19 postPatch = ''
20 # break infite recursion, remove pytest 4 requirement
21 rm test-requirements.txt requirements.txt
22 '';
23
24 nativeBuildInputs = [
25 pbr
26 setuptools
27 ];
28
29 # Check is disabled due to circular dependency of sphinx
30 doCheck = false;
31
32 pythonNamespaces = [ "sphinxcontrib" ];
33
34 meta = with lib; {
35 description = "Sphinx extension for running sphinx-apidoc on each build";
36 homepage = "https://github.com/sphinx-contrib/apidoc";
37 license = licenses.bsd2;
38 maintainers = teams.openstack.members;
39 };
40}