{ lib, buildPythonPackage, fetchPypi, poetry-core, pythonOlder, fastavro, httpx, httpx-sse, pydantic, requests, tokenizers, types-requests, typing-extensions, }: buildPythonPackage rec { pname = "cohere"; version = "5.5.8"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-hM52Zv+PvfT0H7X2ykUqsmOaUUvIiWeihUqbG4INbqA="; }; build-system = [ poetry-core ]; dependencies = [ fastavro httpx httpx-sse pydantic requests tokenizers types-requests typing-extensions ]; # tests require CO_API_KEY doCheck = false; pythonImportsCheck = [ "cohere" ]; meta = with lib; { description = "Simplify interfacing with the Cohere API"; homepage = "https://docs.cohere.com/docs"; changelog = "https://github.com/cohere-ai/cohere-python/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; }; }