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