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