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