diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2019-11-27 18:51:33 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-03-14 15:37:20 -0700 |
commit | d7ef824b7bb3fbdc9751cb7db22fe22681bc77bc (patch) | |
tree | e86459c908c707eb02edb83c90c8348c876e0229 /pkgs/development/python-modules/sphinxcontrib-fulltoc | |
parent | 51fa3d374ac38b1587407764f9317fe85af4a172 (diff) |
pythonPackages.sphinxcontrib-fulltoc: init at 1.2.0
Diffstat (limited to 'pkgs/development/python-modules/sphinxcontrib-fulltoc')
-rw-r--r-- | pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix b/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix new file mode 100644 index 0000000000000..57535c6f137c7 --- /dev/null +++ b/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix @@ -0,0 +1,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 ]; + }; +} |