python311Packages.sphinx-version-warning: refactor
This commit is contained in:
parent
fe1de47482
commit
8254df478e
1 changed files with 21 additions and 8 deletions
|
@ -3,13 +3,15 @@
|
|||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pythonImportsCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, sphinx
|
||||
, sphinxHook
|
||||
, sphinx-autoapi
|
||||
, sphinx-prompt
|
||||
, sphinx-rtd-theme
|
||||
, sphinx-tabs
|
||||
, sphinx-prompt
|
||||
, sphinxemoji
|
||||
, sphinxHook
|
||||
}:
|
||||
|
||||
# Latest tagged release release "1.1.2" (Nov 2018) does not contain
|
||||
|
@ -18,9 +20,14 @@
|
|||
buildPythonPackage {
|
||||
pname = "sphinx-version-warning";
|
||||
version = "unstable-2019-08-10";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"doc"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "humitos";
|
||||
|
@ -40,21 +47,27 @@ buildPythonPackage {
|
|||
|
||||
nativeBuildInputs = [
|
||||
pythonImportsCheckHook
|
||||
sphinxHook
|
||||
sphinx-autoapi
|
||||
sphinx-prompt
|
||||
sphinx-rtd-theme
|
||||
sphinx-tabs
|
||||
sphinx-prompt
|
||||
sphinxemoji
|
||||
sphinxHook
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ sphinx ];
|
||||
buildInputs = [
|
||||
sphinx
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "versionwarning" ];
|
||||
pythonImportsCheck = [
|
||||
"versionwarning"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A sphinx extension to show a warning banner at the top of your documentation";
|
||||
homepage = "https://github.com/humitos/sphinx-version-warning";
|
||||
changelog = "https://github.com/humitos/sphinx-version-warning/blob/${version}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kaction ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue