Unverified Commit 9b015473 authored by natsukium's avatar natsukium
Browse files
parent 905312c7
Loading
Loading
Loading
Loading
+23 −5
Original line number Diff line number Diff line
@@ -52,14 +52,17 @@
, duckduckgo-search
, lark
, jq
, protobuf
, steamship
, pdfminer-six
, lxml
, chardet
, requests-toolbelt
, neo4j
  # test dependencies
, pytest-vcr
, pytest-asyncio
, pytest-mock
, pytest-socket
, pandas
, toml
, freezegun
@@ -70,7 +73,7 @@

buildPythonPackage rec {
  pname = "langchain";
  version = "0.0.170";
  version = "0.0.179";
  format = "pyproject";

  disabled = pythonOlder "3.8";
@@ -79,7 +82,7 @@ buildPythonPackage rec {
    owner = "hwchase17";
    repo = "langchain";
    rev = "refs/tags/v${version}";
    hash = "sha256-0hV8X1c+vMJlynNud//hb164oTYmYlsmeSM4dKwC0G4=";
    hash = "sha256-9MotnDsDXwdwVGuD3sO+FFWluPCHHXkQRH0B1zskLZg=";
  };

  postPatch = ''
@@ -129,9 +132,15 @@ buildPythonPackage rec {
    openai = [
      openai
    ];
    text_helpers = [
      chardet
    ];
    cohere = [
      cohere
    ];
    docarray = [
      # docarray
    ];
    embeddings = [
      sentence-transformers
    ];
@@ -189,17 +198,22 @@ buildPythonPackage rec {
      # clickhouse-connect
      azure-cosmos
      # lancedb
      # langkit
      lark
      pexpect
      # pyvespa
      # O365
      jq
      # docarray
      protobuf
      # hnswlib
      steamship
      pdfminer-six
      lxml
      requests-toolbelt
      neo4j
      # openlm
      # azure-ai-formrecognizer
      # azure-ai-vision
      # azure-cognitiveservices-speech
    ];
  };

@@ -207,6 +221,7 @@ buildPythonPackage rec {
    pytestCheckHook
    pytest-vcr
    pytest-mock
    pytest-socket
    pytest-asyncio
    pandas
    toml
@@ -223,6 +238,9 @@ buildPythonPackage rec {
    # these tests have db access
    "test_table_info"
    "test_sql_database_run"

    # these tests have network access
    "test_socket_disabled"
  ];

  meta = with lib; {