python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / sphinx-notfound-page / default.nix
blob93e7662214ef4d9bb7c2e27c6e4f7b3b3f8d1719
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   flit-core,
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     sphinxHook
41     sphinx-prompt
42     sphinx-rtd-theme
43     sphinx-tabs
44     sphinx-autoapi
45     sphinxemoji
46   ];
48   buildInputs = [ sphinx ];
50   propagatedBuildInputs = [ setuptools ];
52   pythonImportsCheck = [ "notfound" ];
54   meta = with lib; {
55     description = "Sphinx extension to create a custom 404 page with absolute URLs hardcoded";
56     homepage = "https://github.com/readthedocs/sphinx-notfound-page";
57     changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
58     license = licenses.mit;
59     maintainers = with maintainers; [ kaction ];
60   };