Merge pull request #283423 from fabaff/sphinx-notfound-page-fix
python311Packages.sphinx-notfound-page: adjust inputs
This commit is contained in:
commit
e157894dfc
@ -3,6 +3,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, flit-core
|
, flit-core
|
||||||
, pythonImportsCheckHook
|
, pythonImportsCheckHook
|
||||||
|
, pythonOlder
|
||||||
# documentation build dependencies
|
# documentation build dependencies
|
||||||
, sphinxHook
|
, sphinxHook
|
||||||
, sphinx-prompt
|
, sphinx-prompt
|
||||||
@ -12,18 +13,25 @@
|
|||||||
, sphinxemoji
|
, sphinxemoji
|
||||||
# runtime dependencies
|
# runtime dependencies
|
||||||
, sphinx
|
, sphinx
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sphinx-notfound-page";
|
pname = "sphinx-notfound-page";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"doc"
|
||||||
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "readthedocs";
|
owner = "readthedocs";
|
||||||
repo = "sphinx-notfound-page";
|
repo = "sphinx-notfound-page";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
|
hash = "sha256-tG71UuYbdlWNgq6Y5xRH3aWc9/eTr/RlsRNWSUjrbBE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -38,13 +46,22 @@ buildPythonPackage rec {
|
|||||||
sphinxemoji
|
sphinxemoji
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ sphinx ];
|
buildInputs = [
|
||||||
|
sphinx
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "notfound" ];
|
propagatedBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"notfound"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded";
|
description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded";
|
||||||
homepage = "https://github.com/readthedocs/sphinx-notfound-page";
|
homepage = "https://github.com/readthedocs/sphinx-notfound-page";
|
||||||
|
changelog = "https://github.com/readthedocs/sphinx-notfound-page/blob/${version}/CHANGELOG.rst";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ kaction ];
|
maintainers = with maintainers; [ kaction ];
|
||||||
};
|
};
|
||||||
|
@ -3,13 +3,15 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, pythonImportsCheckHook
|
, pythonImportsCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, sphinx
|
, sphinx
|
||||||
, sphinxHook
|
|
||||||
, sphinx-autoapi
|
, sphinx-autoapi
|
||||||
|
, sphinx-prompt
|
||||||
, sphinx-rtd-theme
|
, sphinx-rtd-theme
|
||||||
, sphinx-tabs
|
, sphinx-tabs
|
||||||
, sphinx-prompt
|
|
||||||
, sphinxemoji
|
, sphinxemoji
|
||||||
|
, sphinxHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Latest tagged release release "1.1.2" (Nov 2018) does not contain
|
# Latest tagged release release "1.1.2" (Nov 2018) does not contain
|
||||||
@ -18,9 +20,14 @@
|
|||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
pname = "sphinx-version-warning";
|
pname = "sphinx-version-warning";
|
||||||
version = "unstable-2019-08-10";
|
version = "unstable-2019-08-10";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"doc"
|
||||||
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "humitos";
|
owner = "humitos";
|
||||||
@ -40,21 +47,27 @@ buildPythonPackage {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pythonImportsCheckHook
|
pythonImportsCheckHook
|
||||||
sphinxHook
|
|
||||||
sphinx-autoapi
|
sphinx-autoapi
|
||||||
|
sphinx-prompt
|
||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
sphinx-tabs
|
sphinx-tabs
|
||||||
sphinx-prompt
|
|
||||||
sphinxemoji
|
sphinxemoji
|
||||||
|
sphinxHook
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ sphinx ];
|
buildInputs = [
|
||||||
|
sphinx
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "versionwarning" ];
|
pythonImportsCheck = [
|
||||||
|
"versionwarning"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A sphinx extension to show a warning banner at the top of your documentation";
|
description = "A sphinx extension to show a warning banner at the top of your documentation";
|
||||||
homepage = "https://github.com/humitos/sphinx-version-warning";
|
homepage = "https://github.com/humitos/sphinx-version-warning";
|
||||||
|
changelog = "https://github.com/humitos/sphinx-version-warning/blob/${version}/CHANGELOG.rst";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ kaction ];
|
maintainers = with maintainers; [ kaction ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user