python3Packages.llm-fragments-reader: init at 0.1
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
httpx,
|
||||
httpx-sse,
|
||||
llm,
|
||||
llm-fragments-reader,
|
||||
pytestCheckHook,
|
||||
pytest-asyncio,
|
||||
pytest-httpx,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "llm-fragments-reader";
|
||||
version = "0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = "llm-fragments-reader";
|
||||
tag = version;
|
||||
hash = "sha256-2xdvOpMGsTtnerrlGiVSHoJrM+GQ7Zgv+zn2SAwYAL4=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
llm
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-httpx
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "llm_fragments_reader" ];
|
||||
|
||||
passthru.tests = llm.mkPluginTest llm-fragments-reader;
|
||||
|
||||
meta = {
|
||||
description = "Run URLs through the Jina Reader API";
|
||||
homepage = "https://github.com/simonw/llm-fragments-reader";
|
||||
changelog = "https://github.com/simonw/llm-fragments-reader/releases/tag/${version}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ philiptaron ];
|
||||
};
|
||||
}
|
||||
@@ -69,6 +69,7 @@ let
|
||||
llm-echo ? false,
|
||||
llm-fragments-github ? false,
|
||||
llm-fragments-pypi ? false,
|
||||
llm-fragments-reader ? false,
|
||||
llm-gemini ? false,
|
||||
llm-gguf ? false,
|
||||
llm-grok ? false,
|
||||
|
||||
@@ -8308,6 +8308,8 @@ self: super: with self; {
|
||||
|
||||
llm-fragments-pypi = callPackage ../development/python-modules/llm-fragments-pypi { };
|
||||
|
||||
llm-fragments-reader = callPackage ../development/python-modules/llm-fragments-reader { };
|
||||
|
||||
llm-gemini = callPackage ../development/python-modules/llm-gemini { };
|
||||
|
||||
llm-gguf = callPackage ../development/python-modules/llm-gguf { };
|
||||
|
||||
Reference in New Issue
Block a user