blob: b3b5aa4ad9cecf04c25978aa1f0703321cfad884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
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 ];
dependencies = [ 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 ];
};
}
|