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