mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
python3Packages.sphinx-llm: init at 0.4.1 (#540350)
This commit is contained in:
49
pkgs/development/python-modules/sphinx-llm/default.nix
Normal file
49
pkgs/development/python-modules/sphinx-llm/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user