5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
43 lines
945 B
Nix
43 lines
945 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, flit-core
|
|
, click
|
|
, pyyaml
|
|
, sphinx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-external-toc";
|
|
version = "1.0.1";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "sphinx_external_toc";
|
|
sha256 = "sha256-p9LGPMR+xohUZEOyi8TvRmEhgn7z3Hu1Cd41S61OouA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
pyyaml
|
|
sphinx
|
|
];
|
|
|
|
pythonImportsCheck = [ "sphinx_external_toc" ];
|
|
|
|
meta = with lib; {
|
|
description = "A sphinx extension that allows the site-map to be defined in a single YAML file";
|
|
mainProgram = "sphinx-etoc";
|
|
homepage = "https://github.com/executablebooks/sphinx-external-toc";
|
|
changelog = "https://github.com/executablebooks/sphinx-external-toc/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|