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-txtai";
11 version = "0.4.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "llama_index_readers_txtai";
16 inherit version;
17 hash = "sha256-GMloD+eqjYdMCqFM03NhdKjN9bMHqIdZYORA1OtWd/0=";
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.txtai" ];
28
29 meta = {
30 description = "LlamaIndex Readers Integration for txtai";
31 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-txtai";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ fab ];
34 };
35}