Unverified Commit c9e62cb6 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.{langchain,langgraph}*: bump to 1.0.x; bump anthropic,...

python3Packages.{langchain,langgraph}*: bump to 1.0.x; bump anthropic, google-ai-generative-language, instructor, jiter, openai, and openai-agents (#455030)
parents 39f48e45 7d7a4c97
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  # dependencies
  anyio,
  distro,
  docstring-parser,
  httpx,
  jiter,
  pydantic,
@@ -23,6 +24,7 @@

  # test
  dirty-equals,
  inline-snapshot,
  nest-asyncio,
  pytest-asyncio,
  pytest-xdist,
@@ -32,14 +34,14 @@

buildPythonPackage rec {
  pname = "anthropic";
  version = "0.62.0";
  version = "0.71.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "anthropics";
    repo = "anthropic-sdk-python";
    tag = "v${version}";
    hash = "sha256-EVLSC6ClHnmGqMoefMXj3M4dh812ZN5t9nF3gfCLyCo=";
    hash = "sha256-n8hu2RFuZN0ojHhhU4qPQaT2DUvqSglFhBo2ORln/mc=";
  };

  postPatch = ''
@@ -55,6 +57,7 @@ buildPythonPackage rec {
  dependencies = [
    anyio
    distro
    docstring-parser
    httpx
    jiter
    pydantic
@@ -69,6 +72,7 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    dirty-equals
    inline-snapshot
    nest-asyncio
    pytest-asyncio
    pytest-xdist
+2 −5
Original line number Diff line number Diff line
@@ -11,21 +11,18 @@
  protobuf,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "google-ai-generativelanguage";
  version = "0.6.18";
  version = "0.9.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "google_ai_generativelanguage";
    inherit version;
    hash = "sha256-J0up/PaUZv9k6XHVZYhENDiOUjMAr9Ro/I4wM82OYG4=";
    hash = "sha256-JSR0j0E5F0Rv68jgh53A1PAmoGT4nxfEK4G+p3q3bIQ=";
  };

  build-system = [ setuptools ];
+7 −3
Original line number Diff line number Diff line
@@ -33,19 +33,23 @@

buildPythonPackage rec {
  pname = "instructor";
  version = "1.10.0";
  version = "1.11.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jxnl";
    repo = "instructor";
    tag = version;
    tag = "v${version}";
    hash = "sha256-vknPfRHyLoLo2838p/fbjrqyaBORZzLp9+fN98yVDz0=";
  };

  build-system = [ hatchling ];

  pythonRelaxDeps = [ "rich" ];
  pythonRelaxDeps = [
    "jiter"
    "openai"
    "rich"
  ];

  dependencies = [
    aiohttp
+568 −113

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -11,14 +11,14 @@

buildPythonPackage rec {
  pname = "jiter";
  version = "0.8.2";
  version = "0.11.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pydantic";
    repo = "jiter";
    tag = "v${version}";
    hash = "sha256-6FPwQ6t/zLB86k97S+6z5xWKBPJvjZ5/x3KrxOOT1gk=";
    hash = "sha256-/OSLwqSy/CkAFv0hn1zED70MRsWV8/NTrSfqP7OSRFc=";
  };

  postPatch = ''
Loading