diff --git a/pkgs/development/python-modules/cohere/default.nix b/pkgs/development/python-modules/cohere/default.nix index f08907499408..c1d4d8d169d2 100644 --- a/pkgs/development/python-modules/cohere/default.nix +++ b/pkgs/development/python-modules/cohere/default.nix @@ -9,25 +9,29 @@ # dependencies fastavro, httpx, - httpx-sse, pydantic, pydantic-core, requests, tokenizers, types-requests, typing-extensions, + + # optional-dependencies + aiohttp, + httpx-aiohttp, + oci, }: buildPythonPackage rec { pname = "cohere"; - version = "5.21.1"; + version = "6.1.0"; pyproject = true; src = fetchFromGitHub { owner = "cohere-ai"; repo = "cohere-python"; tag = version; - hash = "sha256-RT4Sxk9fKunuyEXl2pvKgS6U82fPKjMPmSl9jwm+GBk="; + hash = "sha256-be6vhTGXnf1/iaD13VYjey/to+HX28VfmYlUPE2eFT4="; }; build-system = [ poetry-core ]; @@ -35,7 +39,6 @@ buildPythonPackage rec { dependencies = [ fastavro httpx - httpx-sse pydantic pydantic-core requests @@ -44,7 +47,13 @@ buildPythonPackage rec { typing-extensions ]; - pythonRelaxDeps = [ "httpx-sse" ]; + optional-dependencies = { + aiohttp = [ + aiohttp + httpx-aiohttp + ]; + oci = [ oci ]; + }; # tests require CO_API_KEY doCheck = false;