python3Packages.llm-public-ai: init at 0.1

This commit is contained in:
Philip Taron
2026-11-10 15:06:06 -08:00
parent 3cd5618d94
commit 77669e29ca
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
llm,
llm-public-ai,
pytest-asyncio,
pytest-recording,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "llm-public-ai";
version = "0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-public-ai";
tag = finalAttrs.version;
hash = "sha256-QO02izDvIHfMscHpcA88KO1bCMmmn41ivTIGWcJbkMc=";
};
build-system = [ setuptools ];
dependencies = [
httpx
llm
];
nativeCheckInputs = [
pytest-asyncio
pytest-recording
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_public_ai" ];
passthru.tests = llm.mkPluginTest llm-public-ai;
meta = {
description = "LLM models from publicai.co";
homepage = "https://github.com/simonw/llm-public-ai";
changelog = "https://github.com/simonw/llm-public-ai/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
})

View File

@@ -97,6 +97,7 @@ let
llm-openrouter ? false,
llm-pdf-to-images ? false,
llm-perplexity ? false,
llm-public-ai ? false,
llm-sentence-transformers ? false,
llm-templates-fabric ? false,
llm-templates-github ? false,

View File

@@ -10288,6 +10288,8 @@ self: super: with self; {
llm-perplexity = callPackage ../development/python-modules/llm-perplexity { };
llm-public-ai = callPackage ../development/python-modules/llm-public-ai { };
llm-sandbox = callPackage ../development/python-modules/llm-sandbox { };
llm-sentence-transformers = callPackage ../development/python-modules/llm-sentence-transformers { };