depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
sphinx,
pbr,
}:
buildPythonPackage rec {
pname = "sphinxcontrib-fulltoc";
version = "1.2.0";
format = "setuptools";
# pkgutil namespaces are broken in nixpkgs (because they can't scan multiple
# directories). But python2 is EOL, so not supporting it, should be ok.
disabled = pythonOlder "3";
src = fetchPypi {
inherit pname version;
sha256 = "1nbwflv9szyh37yr075xhck8b4gg2c7g3sa38mfi7wv7qhpxcif8";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ sphinx ];
# There are no unit tests
doCheck = false;
# Ensure package importing works
pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
description = "Include a full table of contents in your Sphinx HTML sidebar";
homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";
license = licenses.asl20;
maintainers = with maintainers; [ jluttine ];
};
}