llm-lmstudio: init at 0.2.1

This commit is contained in:
Martin Häcker
2025-06-24 08:39:07 +02:00
parent 5156de68c5
commit a9a4d79c19
3 changed files with 62 additions and 0 deletions
@@ -0,0 +1,59 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
httpx,
llm,
requests,
pytest,
pytest-asyncio,
pytest-mock,
pytest-vcr,
}:
buildPythonPackage rec {
pname = "llm-lmstudio";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "agustif";
repo = "llm-lmstudio";
rev = "v${version}";
hash = "sha256-dPrkvoVLDIk/JxUhvUUyjMzovH+Q/O13eTdA6qvdKxY=";
};
build-system = [
setuptools
wheel
];
dependencies = [
httpx
llm
requests
];
optional-dependencies = {
test = [
pytest
pytest-asyncio
pytest-mock
pytest-vcr
];
};
pythonImportsCheck = [
"llm_lmstudio"
];
meta = {
description = "Plugin to use local models via LM Studio API with https://llm.datasette.io";
homepage = "https://github.com/agustif/llm-lmstudio";
changelog = "https://github.com/agustif/llm-lmstudio/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dwt ];
};
}
@@ -81,6 +81,7 @@ let
llm-hacker-news ? false,
llm-jq ? false,
llm-llama-server ? false,
llm-lmstudio ? false,
llm-mistral ? false,
llm-ollama ? false,
llm-openai-plugin ? false,
+2
View File
@@ -8904,6 +8904,8 @@ self: super: with self; {
llm-llama-server = callPackage ../development/python-modules/llm-llama-server { };
llm-lmstudio = callPackage ../development/python-modules/llm-lmstudio { };
llm-mistral = callPackage ../development/python-modules/llm-mistral { };
llm-ollama = callPackage ../development/python-modules/llm-ollama { };