Unverified Commit a6c45d8d authored by R. RyanTM's avatar R. RyanTM Committed by natsukium
Browse files

python3Packages.cohere: 5.21.1 -> 6.1.0

parent 199c3eae
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
@@ -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;