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 llama-index-program-openai, 9}: 10 11buildPythonPackage rec { 12 pname = "llama-index-question-gen-openai"; 13 version = "0.3.1"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "llama_index_question_gen_openai"; 18 inherit version; 19 hash = "sha256-XpMRtDPMJYH/ilMfoZ+zqiGBW6/3WqrN7xF2CslSKqk="; 20 }; 21 22 build-system = [ hatchling ]; 23 24 dependencies = [ 25 llama-index-core 26 llama-index-llms-openai 27 llama-index-program-openai 28 ]; 29 30 # Tests are only available in the mono repo 31 doCheck = false; 32 33 pythonImportsCheck = [ "llama_index.question_gen.openai" ]; 34 35 meta = with lib; { 36 description = "LlamaIndex Question Gen Integration for Openai Generator"; 37 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/question_gen/llama-index-question-gen-openai"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}