From 5b27fe69e23d735337186dc975c2d03b37956988 Mon Sep 17 00:00:00 2001 From: sarahec Date: Wed, 18 Sep 2024 09:41:29 -0700 Subject: [PATCH] python312Packages.chromadb @ 0.5.5: Cherry-pick patches for ongoing pydantic compatibility --- .../python-modules/chromadb/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index 368bf0fc0721..7416e254769f 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -9,6 +9,7 @@ darwin, fastapi, fetchFromGitHub, + fetchpatch, grpcio, httpx, hypothesis, @@ -69,6 +70,20 @@ buildPythonPackage rec { hash = "sha256-3FmnQEpknYNzI3WlQ3kc8qa4LFcn1zpxKDbkATU7/48="; }; + patches = [ + # Remove these on the next release + (fetchpatch { + name = "pydantic19-fastapi1.patch"; + url = "https://github.com/chroma-core/chroma/commit/d62c13da29b7bff77bd7dee887123e3c57e2c19e.patch"; + hash = "sha256-E3xmh9vQZH3NCfG6phvzM65NGwlcHmPgfU6FERKAJ60="; + }) + (fetchpatch { + name = "no-union-types-pydantic1.patch"; + url = "https://github.com/chroma-core/chroma/commit/2fd5b27903dffcf8bdfbb781a25bcecc17b27672.patch"; + hash = "sha256-nmiA/lKZVrHKXumc+J4uVRiMwrnFrz2tgMpfcay5hhw="; + }) + ]; + pythonRelaxDeps = [ "chroma-hnswlib" "orjson"