Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / sphinx-notfound-page / default.nix
blob0621c2867d03f4699fe0db589b79e79685338bbc
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pythonImportsCheckHook
6 , pythonOlder
7 # documentation build dependencies
8 , sphinxHook
9 , sphinx-prompt
10 , sphinx-rtd-theme
11 , sphinx-tabs
12 , sphinx-autoapi
13 , sphinxemoji
14 # runtime dependencies
15 , sphinx
16 , setuptools
19 buildPythonPackage rec {
20   pname = "sphinx-notfound-page";
21   version = "1.0.0";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   outputs = [
27     "out"
28     "doc"
29   ];
31   src = fetchFromGitHub {
32     owner = "readthedocs";
33     repo = "sphinx-notfound-page";
34     rev = "refs/tags/${version}";
35     hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
36   };
38   nativeBuildInputs = [
39     flit-core
40     pythonImportsCheckHook
41     sphinxHook
42     sphinx-prompt
43     sphinx-rtd-theme
44     sphinx-tabs
45     sphinx-autoapi
46     sphinxemoji
47   ];
49   buildInputs = [
50     sphinx
51   ];
53   propagatedBuildInputs = [
54     setuptools
55   ];
57   pythonImportsCheck = [
58     "notfound"
59   ];
61   meta = with lib; {
62     description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded";
63     homepage = "https://github.com/readthedocs/sphinx-notfound-page";
64     changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
65     license = licenses.mit;
66     maintainers = with maintainers; [ kaction ];
67   };