2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# documentation build dependencies
|
|
|
|
, sphinxHook
|
|
|
|
# runtime dependencies
|
|
|
|
, sphinx
|
|
|
|
, pygments
|
|
|
|
, docutils
|
|
|
|
# test dependencies
|
|
|
|
, pytest
|
|
|
|
, beautifulsoup4
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-tabs";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.4.4";
|
|
|
|
format = "pyproject";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "executablebooks";
|
|
|
|
repo = "sphinx-tabs";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-RcCADGJfwXP/U7Uws/uX+huaJzRDRUabQOnc9gqMUzM=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'docutils~=0.18.0' 'docutils'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2023-02-02 18:25:31 +00:00
|
|
|
sphinxHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
pygments
|
|
|
|
docutils
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytest
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sphinx_tabs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A sphinx extension for creating tabbed content when building HTML.";
|
|
|
|
homepage = "https://github.com/executablebooks/sphinx-tabs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
};
|
|
|
|
}
|