1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 llama-index-core, 6 openai, 7 hatchling, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "llama-index-llms-openai"; 13 version = "0.5.6"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 pname = "llama_index_llms_openai"; 20 inherit version; 21 hash = "sha256-klM+g74usyHYSgGoT7K/RQa/aExBDNlMyymubJSaJ9Q="; 22 }; 23 24 pythonRemoveDeps = [ 25 # Circular dependency 26 "llama-index-agent-openai" 27 ]; 28 29 build-system = [ hatchling ]; 30 31 dependencies = [ 32 llama-index-core 33 openai 34 ]; 35 36 # Tests are only available in the mono repo 37 doCheck = false; 38 39 pythonImportsCheck = [ "llama_index.llms.openai" ]; 40 41 meta = with lib; { 42 description = "LlamaIndex LLMS Integration for OpenAI"; 43 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-openai"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}