python3Packages.sphinx-llm: init at 0.4.1 (#540350)

This commit is contained in:
Michael Daniels
2026-07-17 01:39:29 +00:00
committed by GitHub
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
hatchling,
hatch-vcs,
sphinx,
sphinx-markdown-builder,
langchain-ollama,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "sphinx-llm";
version = "0.4.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "sphinx-llm";
tag = finalAttrs.version;
hash = "sha256-hrJ2g4Zcjs0ojueCtrMpsMv1MRwd5kuBFYI4cnhPZrs=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
sphinx
sphinx-markdown-builder
langchain-ollama
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"sphinx_llm.txt"
"sphinx_llm.docref"
];
meta = {
description = "LLM extensions for Sphinx Documentation";
homepage = "https://github.com/NVIDIA/sphinx-llm";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
};
})

View File

@@ -19132,6 +19132,8 @@ self: super: with self; {
callPackage ../development/python-modules/sphinx-last-updated-by-git
{ };
sphinx-llm = callPackage ../development/python-modules/sphinx-llm { };
sphinx-llms-txt = callPackage ../development/python-modules/sphinx-llms-txt { };
sphinx-lv2-theme = callPackage ../development/python-modules/sphinx-lv2-theme { };