nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
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,
15 setuptools,
16}:
17
18buildPythonPackage rec {
19 pname = "sphinx-notfound-page";
20 version = "1.1.0";
21 pyproject = true;
22
23 outputs = [
24 "out"
25 "doc"
26 ];
27
28 src = fetchFromGitHub {
29 owner = "readthedocs";
30 repo = "sphinx-notfound-page";
31 tag = version;
32 hash = "sha256-KkdbK8diuQtZQk6FC9xDK/U7mfRBwwUmXp4YYuKueLQ=";
33 };
34
35 nativeBuildInputs = [
36 flit-core
37 sphinxHook
38 sphinx-prompt
39 sphinx-rtd-theme
40 sphinx-tabs
41 sphinx-autoapi
42 sphinxemoji
43 ];
44
45 buildInputs = [ sphinx ];
46
47 propagatedBuildInputs = [ setuptools ];
48
49 pythonImportsCheck = [ "notfound" ];
50
51 meta = {
52 description = "Sphinx extension to create a custom 404 page with absolute URLs hardcoded";
53 homepage = "https://github.com/readthedocs/sphinx-notfound-page";
54 changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ kaction ];
57 };
58}