Unverified Commit ed9263dc authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #264368 from natsukium/langchain/update

python311Packages.langchain: 0.0.320 -> 0.0.325; python311Packages.langsmith: 0.0.49 -> 0.0.53
parents a69f3537 c114a76e
Loading
Loading
Loading
Loading
+11 −20
Original line number Diff line number Diff line
@@ -11,16 +11,13 @@
, dataclasses-json
, jsonpatch
, langsmith
, numexpr
, numpy
, openapi-schema-pydantic
, pydantic
, pyyaml
, requests
, sqlalchemy
, tenacity
  # optional dependencies
, anthropic
, atlassian-python-api
, azure-core
, azure-cosmos
@@ -56,6 +53,7 @@
, pgvector
, pinecone-client
, psycopg2
, pymongo
, pyowm
, pypdf
, pytesseract
@@ -65,11 +63,10 @@
, redis
, requests-toolbelt
, sentence-transformers
, spacy
, steamship
, tiktoken
, torch
, transformers
, typer
, weaviate-client
, wikipedia
  # test dependencies
@@ -88,8 +85,8 @@

buildPythonPackage rec {
  pname = "langchain";
  version = "0.0.320";
  format = "pyproject";
  version = "0.0.325";
  pyproject = true;

  disabled = pythonOlder "3.8";

@@ -97,7 +94,7 @@ buildPythonPackage rec {
    owner = "hwchase17";
    repo = "langchain";
    rev = "refs/tags/v${version}";
    hash = "sha256-Yw3gGt/OvrQ4IYauFUt6pBWOecy+PaWiGXoo5dWev5M=";
    hash = "sha256-/bk4RafDDL4nozyFOiikyU4auBSftej21m5/FnEtDog=";
  };

  sourceRoot = "${src.name}/libs/langchain";
@@ -117,11 +114,9 @@ buildPythonPackage rec {
    requests
    pyyaml
    numpy
    openapi-schema-pydantic
    dataclasses-json
    tenacity
    aiohttp
    numexpr
    langsmith
    anyio
    jsonpatch
@@ -131,18 +126,15 @@ buildPythonPackage rec {

  passthru.optional-dependencies = {
    llms = [
      anthropic
      clarifai
      cohere
      openai
      # openllm
      # openlm
      nlpcloud
      huggingface-hub
      manifest-ml
      torch
      transformers
      # xinference
    ];
    qdrant = [
      qdrant-client
@@ -180,13 +172,11 @@ buildPythonPackage rec {
      # azure-search-documents
    ];
    all = [
      anthropic
      clarifai
      cohere
      openai
      nlpcloud
      huggingface-hub
      # jina
      manifest-ml
      elasticsearch
      opensearch-py
@@ -194,7 +184,6 @@ buildPythonPackage rec {
      faiss
      sentence-transformers
      transformers
      spacy
      nltk
      wikipedia
      beautifulsoup4
@@ -203,6 +192,8 @@ buildPythonPackage rec {
      jinja2
      pinecone-client
      # pinecone-text
      # marqo
      pymongo
      weaviate-client
      redis
      google-api-python-client
@@ -236,7 +227,6 @@ buildPythonPackage rec {
      # O365
      jq
      # docarray
      steamship
      pdfminer-six
      lxml
      requests-toolbelt
@@ -250,14 +240,15 @@ buildPythonPackage rec {
      # tigrisdb
      # nebula3-python
      # awadb
      # esprima
      # octoai-sdk
      esprima
      rdflib
      # amadeus
      # xinference
      librosa
      python-arango
    ];
    cli = [
      typer
    ];
  };

  nativeCheckInputs = [
+7 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@

buildPythonPackage rec {
  pname = "langsmith";
  version = "0.0.49";
  version = "0.0.53";
  format = "pyproject";

  disabled = pythonOlder "3.8";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
    owner = "langchain-ai";
    repo = "langsmith-sdk";
    rev = "refs/tags/v${version}";
    hash = "sha256-vOa9FNzeJB8QgJ6FW+4vxNfDnBbrKtByIwW3sGP8/ho=";
    hash = "sha256-5w6bCNYoZAIrFkruw7E3Tw0G0no05x/g2hHESC3T2lw=";
  };

  sourceRoot = "${src.name}/python";
@@ -44,6 +44,11 @@ buildPythonPackage rec {
  disabledTests = [
    # These tests require network access
    "integration_tests"
    # due to circular import
    "test_as_runnable"
    "test_as_runnable_batch"
    "test_as_runnable_async"
    "test_as_runnable_async_batch"
  ];

  disabledTestPaths = [
+0 −44
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pydantic
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "openapi-schema-pydantic";
  version = "1.2.4";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PiLPWLdKafdSzH5fFTf25EFkKC2ycAy7zTu5nd0GUZY=";
  };

  propagatedBuildInputs = [
    pydantic
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # these tests are broken with `pydantic >= 1.10`
    # but this library seems to work fine.
    # e.g. https://github.com/hwchase17/langchain/blob/d86ed15d8884d5a3f120a433b9dda065647e4534/poetry.lock#L6011-L6012
    "test_pydantic_discriminator_schema_generation"
    "test_pydantic_discriminator_openapi_generation"
  ];

  meta = with lib; {
    description = "OpenAPI (v3) specification schema as pydantic class";
    homepage = "https://github.com/kuimono/openapi-schema-pydantic";
    changelog = "https://github.com/kuimono/openapi-schema-pydantic/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ natsukium ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ mapAliases ({
  notifymuch = throw "notifymuch has been promoted to a top-level attribute"; # added 2022-10-02
  Nuitka = nuitka; # added 2023-02-19
  ntlm-auth = throw "ntlm-auth has been removed, because it relies on the md4 implementation provided by openssl. Use pyspnego instead.";
  openapi-schema-pydantic = throw "openapi-schema-pydantic has been removed, since it is no longer maintained"; # added 2023-10-30
  opsdroid_get_image_size = opsdroid-get-image-size; # added 2023-10-16
  ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28
  pafy = throw "pafy has been removed because it is unmaintained and only a dependency of mps-youtube, itself superseded by yewtube"; # Added 2023-01-19
+0 −2
Original line number Diff line number Diff line
@@ -8425,8 +8425,6 @@ self: super: with self; {
  openant = callPackage ../development/python-modules/openant { };
  openapi-schema-pydantic = callPackage ../development/python-modules/openapi-schema-pydantic { };
  openapi-schema-validator = callPackage ../development/python-modules/openapi-schema-validator { };
  openapi-spec-validator = callPackage ../development/python-modules/openapi-spec-validator { };