Unverified Commit 83d7d764 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.chromadb: 1.5.5 -> 1.5.7 (#509071)

parents 716b412a 6416786e
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -68,19 +68,19 @@

buildPythonPackage (finalAttrs: {
  pname = "chromadb";
  version = "1.5.5";
  version = "1.5.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "chroma-core";
    repo = "chroma";
    tag = finalAttrs.version;
    hash = "sha256-Y/M7awTi2AJTh4xRY0MIfnC9ygy62fG7X3W9QUxW2XE=";
    hash = "sha256-JrkfLwEL7iTL9P/4UDM4hFQtRL1JYH47dgZ1d+Mphqw=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit (finalAttrs) pname version src;
    hash = "sha256-yx5OMZSWRAP732lRypap79vr2I72aT+TWooo+5e0wDQ=";
    hash = "sha256-Szy2mSTriMwMViVTbI+0XaizcQBKh1Ncipf84moDREI=";
  };

  # Can't use fetchFromGitHub as the build expects a zipfile
@@ -102,7 +102,12 @@ buildPythonPackage (finalAttrs: {
                       "anonymized_telemetry: bool = False"
    ''
    # error: queries overflow the depth limit!
    # https://github.com/chroma-core/chroma/issues/6891
    # https://github.com/chroma-core/chroma/issues/6892
    # https://github.com/chroma-core/chroma/issues/6687
    + ''
      sed -i '1i #![recursion_limit = "256"]' rust/blockstore/src/lib.rs
      sed -i '1i #![recursion_limit = "256"]' rust/index/src/lib.rs
      sed -i '1i #![recursion_limit = "256"]' rust/segment/src/lib.rs
    '';