depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-external-toc/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
933 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";
hash = "sha256-p9LGPMR+xohUZEOyi8TvRmEhgn7z3Hu1Cd41S61OouA=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
click
pyyaml
sphinx
];
pythonImportsCheck = [ "sphinx_external_toc" ];
meta = with lib; {
description = "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 = [ ];
};
}