summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix
blob: 57535c6f137c799c4beccec31ae653fce60706bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx, pbr }:

buildPythonPackage rec {
  pname = "sphinxcontrib-fulltoc";
  version = "1.2.0";

  # 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" ];

  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 ];
  };
}