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