From a6c45d8d50cc5509a2fe729dfe2524caae579733 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Apr 2026 17:57:24 +0000 Subject: [PATCH] python3Packages.cohere: 5.21.1 -> 6.1.0 --- .../python-modules/cohere/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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;