bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
61 lines
1 KiB
Nix
61 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# documentation build dependencies
|
|
sphinxHook,
|
|
# runtime dependencies
|
|
sphinx,
|
|
pygments,
|
|
docutils,
|
|
# test dependencies
|
|
pytest,
|
|
beautifulsoup4,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-tabs";
|
|
version = "3.4.5";
|
|
format = "pyproject";
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = "sphinx-tabs";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-uFSnIhvnmg3ZURJGbSOUpLVx0EDUs/9SewspM7gtNRk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
sphinxHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
sphinx
|
|
pygments
|
|
docutils
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
beautifulsoup4
|
|
];
|
|
|
|
pythonImportsCheck = [ "sphinx_tabs" ];
|
|
|
|
meta = with lib; {
|
|
description = "Sphinx extension for creating tabbed content when building HTML";
|
|
homepage = "https://github.com/executablebooks/sphinx-tabs";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|