23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ 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
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-notfound-page";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "readthedocs";
|
|
repo = "sphinx-notfound-page";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
pythonImportsCheckHook
|
|
sphinxHook
|
|
sphinx-prompt
|
|
sphinx-rtd-theme
|
|
sphinx-tabs
|
|
sphinx-autoapi
|
|
sphinxemoji
|
|
];
|
|
|
|
buildInputs = [
|
|
sphinx
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"notfound"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded";
|
|
homepage = "https://github.com/readthedocs/sphinx-notfound-page";
|
|
changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|