1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 llama-index-core,
6 hatchling,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "llama-index-readers-database";
12 version = "0.5.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 pname = "llama_index_readers_database";
19 inherit version;
20 hash = "sha256-9hMQJ0DdMIADJ5Mtjx7PIq6pOHjUmCceecuPev10d/8=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [ llama-index-core ];
26
27 # Tests are only available in the mono repo
28 doCheck = false;
29
30 pythonImportsCheck = [ "llama_index.readers.database" ];
31
32 meta = with lib; {
33 description = "LlamaIndex Readers Integration for Databases";
34 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-database";
35 changelog = "https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/readers/llama-index-readers-database/CHANGELOG.md";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}