mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
34 lines
983 B
Nix
34 lines
983 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 ];
|
|
};
|
|
}
|