2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
pythonImportsCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
# documentation build dependencies
|
|
|
|
sphinxHook,
|
|
|
|
sphinx-prompt,
|
|
|
|
sphinx-rtd-theme,
|
|
|
|
sphinx-tabs,
|
|
|
|
sphinx-autoapi,
|
|
|
|
sphinxemoji,
|
|
|
|
# runtime dependencies
|
|
|
|
sphinx,
|
|
|
|
setuptools,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-notfound-page";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "readthedocs";
|
|
|
|
repo = "sphinx-notfound-page";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
pythonImportsCheckHook
|
|
|
|
sphinxHook
|
|
|
|
sphinx-prompt
|
|
|
|
sphinx-rtd-theme
|
|
|
|
sphinx-tabs
|
2023-03-15 16:39:30 +00:00
|
|
|
sphinx-autoapi
|
2023-02-02 18:25:31 +00:00
|
|
|
sphinxemoji
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ sphinx ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "notfound" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Sphinx extension to create a custom 404 page with absolute URLs hardcoded";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/readthedocs/sphinx-notfound-page";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
};
|
|
|
|
}
|