Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 llama-index-core,
7 llama-index-llms-openai,
8 transformers,
9}:
10
11buildPythonPackage rec {
12 pname = "llama-index-llms-openai-like";
13 version = "0.5.3";
14 pyproject = true;
15
16 src = fetchPypi {
17 pname = "llama_index_llms_openai_like";
18 inherit version;
19 hash = "sha256-hL38iLtdnqgGvdG+S0N4NXeBwGN8eMVIJCqshX8WUJA=";
20 };
21
22 build-system = [ hatchling ];
23
24 dependencies = [
25 llama-index-core
26 llama-index-llms-openai
27 transformers
28 ];
29
30 # Tests are only available in the mono repo
31 doCheck = false;
32
33 pythonImportsCheck = [ "llama_index.llms.openai_like" ];
34
35 meta = {
36 description = "LlamaIndex LLMS Integration for OpenAI like";
37 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-openai-like";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}