2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
# documentation build dependencies
|
|
|
|
sphinxHook,
|
|
|
|
sphinx-rtd-theme,
|
|
|
|
matplotlib,
|
|
|
|
ipython,
|
|
|
|
# runtime dependencies
|
|
|
|
sphinx,
|
|
|
|
beautifulsoup4,
|
|
|
|
# check dependencies
|
|
|
|
pytest,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-codeautolink";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.15.1";
|
2023-03-15 16:39:30 +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 = "felix-hilden";
|
|
|
|
repo = "sphinx-codeautolink";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-BnGcLAM/KK8Ub+GmRY1oatUCyP4hvY2O1WTjLHBebpw=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools
|
2023-02-02 18:25:31 +00:00
|
|
|
sphinxHook
|
|
|
|
sphinx-rtd-theme
|
|
|
|
matplotlib
|
|
|
|
ipython
|
|
|
|
];
|
|
|
|
|
|
|
|
sphinxRoot = "docs/src";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sphinx_codeautolink" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A sphinx extension that makes code examples clickable";
|
|
|
|
homepage = "https://github.com/felix-hilden/sphinx-codeautolink";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
};
|
|
|
|
}
|