2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, flit-core
|
|
|
|
, click
|
|
|
|
, pyyaml
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-external-toc";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "sphinx_external_toc";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-990JX/OrD7dKMQ1BCwo2GPwd3G8s5DWJfWWayqSj6yQ=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/executablebooks/sphinx-external-toc";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/executablebooks/sphinx-external-toc/raw/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|