Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-notfound-page / default.nix
blobe9f5d9c4519dc63261d868f7607d9a7cbde67956
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pythonImportsCheckHook
6 # documentation build dependencies
7 , sphinxHook
8 , sphinx-prompt
9 , sphinx-rtd-theme
10 , sphinx-tabs
11 , sphinx-autoapi
12 , sphinxemoji
13 # runtime dependencies
14 , sphinx
17 buildPythonPackage rec {
18   pname = "sphinx-notfound-page";
19   version = "1.0.0";
20   format = "pyproject";
21   outputs = [ "out" "doc" ];
23   src = fetchFromGitHub {
24     owner = "readthedocs";
25     repo = "sphinx-notfound-page";
26     rev = version;
27     hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
28   };
30   nativeBuildInputs = [
31     flit-core
32     pythonImportsCheckHook
33     sphinxHook
34     sphinx-prompt
35     sphinx-rtd-theme
36     sphinx-tabs
37     sphinx-autoapi
38     sphinxemoji
39   ];
41   propagatedBuildInputs = [ sphinx ];
43   pythonImportsCheck = [ "notfound" ];
45   meta = with lib; {
46     description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded";
47     homepage = "https://github.com/readthedocs/sphinx-notfound-page";
48     license = licenses.mit;
49     maintainers = with maintainers; [ kaction ];
50   };