python311Packages.sphinx-notfound-page: adjust inputs

This commit is contained in:
Fabian Affolter
2024-01-24 08:50:01 +01:00
parent a9767322d0
commit fe1de47482
@@ -3,6 +3,7 @@
, fetchFromGitHub
, flit-core
, pythonImportsCheckHook
, pythonOlder
# documentation build dependencies
, sphinxHook
, sphinx-prompt
@@ -12,18 +13,25 @@
, sphinxemoji
# runtime dependencies
, sphinx
, setuptools
}:
buildPythonPackage rec {
pname = "sphinx-notfound-page";
version = "1.0.0";
format = "pyproject";
outputs = [ "out" "doc" ];
pyproject = true;
disabled = pythonOlder "3.8";
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "readthedocs";
repo = "sphinx-notfound-page";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
};
@@ -38,13 +46,22 @@ buildPythonPackage rec {
sphinxemoji
];
propagatedBuildInputs = [ sphinx ];
buildInputs = [
sphinx
];
pythonImportsCheck = [ "notfound" ];
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 ];
};