1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, flit-core 6, click 7, pyyaml 8, sphinx 9}: 10 11buildPythonPackage rec { 12 pname = "sphinx-external-toc"; 13 version = "0.3.0"; 14 15 format = "flit"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "sphinx_external_toc"; 22 sha256 = "73198636ada4b4f72f69c7bab09f0e4ce84978056dc5afa9ee51d287bec0a8ef"; 23 }; 24 25 nativeBuildInputs = [ flit-core ]; 26 27 propagatedBuildInputs = [ 28 click 29 pyyaml 30 sphinx 31 ]; 32 33 pythonImportsCheck = [ "sphinx_external_toc" ]; 34 35 meta = with lib; { 36 description = "A sphinx extension that allows the site-map to be defined in a single YAML file"; 37 homepage = "https://github.com/executablebooks/sphinx-external-toc"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ marsam ]; 40 }; 41}