depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-hoverxref/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

72 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
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,
}:
buildPythonPackage rec {
pname = "sphinx-hoverxref";
version = "1.3.0";
format = "pyproject";
outputs = [
"out"
"doc"
];
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
sphinx-autoapi
sphinxcontrib-bibtex
sphinxemoji
];
propagatedBuildInputs = [
sphinx
sphinxcontrib-jquery
];
pythonImportsCheck = [ "hoverxref" ];
meta = with lib; {
description = "Sphinx extension for creating tooltips on the cross references of the documentation";
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 dont need to click a link to see whats
in there.
'';
homepage = "https://github.com/readthedocs/sphinx-hoverxref";
license = licenses.mit;
maintainers = with maintainers; [ kaction ];
};
}