Unverified Commit 984a07f8 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #231383 from natsukium/langchain/update

python3Packages.langchain: 0.0.163 -> 0.0.166
parents 195e6dc2 0ca67254
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@
, duckduckgo-search
, lark
, jq
, protobuf
  # test dependencies
, pytest-vcr
, pytest-asyncio
@@ -66,7 +67,7 @@

buildPythonPackage rec {
  pname = "langchain";
  version = "0.0.163";
  version = "0.0.166";
  format = "pyproject";

  disabled = pythonOlder "3.8";
@@ -75,7 +76,7 @@ buildPythonPackage rec {
    owner = "hwchase17";
    repo = "langchain";
    rev = "refs/tags/v${version}";
    hash = "sha256-3oebRLMunzfz+fAS5h+HaabioIPXTJLJc0YAktLx4/U=";
    hash = "sha256-i6CvboYZigky49a7X8RuQH2EfcucJPtEtFEzZxaNJG8=";
  };

  postPatch = ''
@@ -190,6 +191,9 @@ buildPythonPackage rec {
      # pyvespa
      # O365
      jq
      # docarray
      protobuf
      # hnswlib
    ];
  };

@@ -204,10 +208,10 @@ buildPythonPackage rec {
    responses
  ];

  preCheck = ''
  pytestFlagsArray = [
    # integration_tests have many network, db access and require `OPENAI_API_KEY`, etc.
    rm -r tests/integration_tests
  '';
    "--ignore=tests/integration_tests"
  ];

  disabledTests = [
    # these tests have db access