2024-06-05 15:53:02 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
flit-core,
|
|
|
|
|
# documentation build dependencies
|
|
|
|
|
sphinxHook,
|
|
|
|
|
sphinx-notfound-page,
|
|
|
|
|
sphinx-prompt,
|
|
|
|
|
sphinx-rtd-theme,
|
|
|
|
|
sphinx-tabs,
|
|
|
|
|
sphinx-version-warning,
|
|
|
|
|
sphinx-autoapi,
|
|
|
|
|
sphinxcontrib-bibtex,
|
|
|
|
|
sphinxemoji,
|
|
|
|
|
# runtime dependencies
|
|
|
|
|
sphinx,
|
|
|
|
|
sphinxcontrib-jquery,
|
2023-02-02 18:25:31 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "sphinx-hoverxref";
|
|
|
|
|
version = "1.3.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
format = "pyproject";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"doc"
|
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "readthedocs";
|
|
|
|
|
repo = "sphinx-hoverxref";
|
|
|
|
|
rev = version;
|
|
|
|
|
hash = "sha256-DJ+mHu9IeEYEyf/SD+nDNtWpTf6z7tQzG0ogaECDpkU=";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
flit-core
|
|
|
|
|
|
|
|
|
|
sphinxHook
|
|
|
|
|
sphinx-notfound-page
|
|
|
|
|
sphinx-prompt
|
|
|
|
|
sphinx-rtd-theme
|
|
|
|
|
sphinx-tabs
|
|
|
|
|
sphinx-version-warning
|
2023-03-15 16:39:30 +00:00
|
|
|
|
sphinx-autoapi
|
2023-02-02 18:25:31 +00:00
|
|
|
|
sphinxcontrib-bibtex
|
|
|
|
|
sphinxemoji
|
|
|
|
|
];
|
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
sphinx
|
|
|
|
|
sphinxcontrib-jquery
|
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hoverxref" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
|
description = "Sphinx extension for creating tooltips on the cross references of the documentation";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
longDescription = ''
|
|
|
|
|
sphinx-hoverxref is a Sphinx extension to show a floating window
|
|
|
|
|
(tooltips or modal dialogues) on the cross references of the
|
|
|
|
|
documentation embedding the content of the linked section on them.
|
|
|
|
|
|
|
|
|
|
With sphinx-hoverxref, you don’t need to click a link to see what’s
|
|
|
|
|
in there.
|
|
|
|
|
'';
|
|
|
|
|
homepage = "https://github.com/readthedocs/sphinx-hoverxref";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
|
};
|
|
|
|
|
}
|