1{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx, pbr }:
2
3buildPythonPackage rec {
4 pname = "sphinxcontrib-fulltoc";
5 version = "1.2.0";
6
7 # pkgutil namespaces are broken in nixpkgs (because they can't scan multiple
8 # directories). But python2 is EOL, so not supporting it, should be ok.
9 disabled = pythonOlder "3";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "1nbwflv9szyh37yr075xhck8b4gg2c7g3sa38mfi7wv7qhpxcif8";
14 };
15
16 nativeBuildInputs = [ pbr ];
17 propagatedBuildInputs = [ sphinx ];
18
19 # There are no unit tests
20 doCheck = false;
21 # Ensure package importing works
22 pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];
23
24 meta = with lib; {
25 description = "Include a full table of contents in your Sphinx HTML sidebar";
26 homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ jluttine ];
29 };
30}