Skip to content

Commit 249fd9d

Browse files
committed
python3Packages.chromadb: 0.5.20 -> 0.6.3
Last of the pre-1.0.0 releases. Required by some legacy AI packages. changelog: https://github.com/chroma-core/chroma/releases/tag/0.6.3
1 parent e54888c commit 249fd9d

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

pkgs/development/python-modules/chromadb/default.nix

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,26 @@
6363

6464
buildPythonPackage rec {
6565
pname = "chromadb";
66-
version = "0.5.20";
66+
version = "0.6.3";
6767
pyproject = true;
6868

6969
src = fetchFromGitHub {
7070
owner = "chroma-core";
7171
repo = "chroma";
7272
tag = version;
73-
hash = "sha256-DQHkgCHtrn9xi7Kp7TZ5NP1EtFtTH5QOvne9PUvxsWc=";
73+
hash = "sha256-yvAX8buETsdPvMQmRK5+WFz4fVaGIdNlfhSadtHwU5U=";
7474
};
7575

7676
cargoDeps = rustPlatform.fetchCargoVendor {
7777
inherit src;
78-
name = "${pname}-${version}-vendor";
79-
hash = "sha256-ZtCTg8qNCiqlH7RsZxaWUNAoazdgmXP2GtpjDpRdvbk=";
78+
name = "${pname}-${version}";
79+
hash = "sha256-lHRBXJa/OFNf4x7afEJw9XcuDveTBIy3XpQ3+19JXn4=";
8080
};
8181

8282
pythonRelaxDeps = [
8383
"chroma-hnswlib"
8484
"orjson"
85+
"tokenizers"
8586
];
8687

8788
build-system = [
@@ -166,9 +167,11 @@ buildPythonPackage rec {
166167
# Tests are flaky / timing sensitive
167168
"test_fastapi_server_token_authn_allows_when_it_should_allow"
168169
"test_fastapi_server_token_authn_rejects_when_it_should_reject"
170+
169171
# Issue with event loop
170172
"test_http_client_bw_compatibility"
171-
# Issue with httpx
173+
174+
# httpx ReadError
172175
"test_not_existing_collection_delete"
173176
];
174177

@@ -181,6 +184,17 @@ buildPythonPackage rec {
181184
"chromadb/test/property/test_cross_version_persist.py"
182185
"chromadb/test/stress/"
183186
"chromadb/test/test_api.py"
187+
188+
# httpx failures
189+
"chromadb/test/api/test_delete_database.py"
190+
191+
# Cannot be loaded by pytest without path hacks (fixed in 1.0.0)
192+
"chromadb/test/test_logservice.py"
193+
"chromadb/test/proto/test_utils.py"
194+
"chromadb/test/segment/distributed/test_protobuf_translation.py"
195+
196+
# Hypothesis FailedHealthCheck due to nested @given tests
197+
"chromadb/test/cache/test_cache.py"
184198
];
185199

186200
__darwinAllowLocalNetworking = true;
@@ -198,17 +212,17 @@ buildPythonPackage rec {
198212
"([0-9].+)"
199213
];
200214
};
201-
};
202215

203-
meta = {
204-
description = "AI-native open-source embedding database";
205-
homepage = "https://github.com/chroma-core/chroma";
206-
changelog = "https://github.com/chroma-core/chroma/releases/tag/${version}";
207-
license = lib.licenses.asl20;
208-
maintainers = with lib.maintainers; [
209-
fab
210-
sarahec
211-
];
212-
mainProgram = "chroma";
216+
meta = {
217+
description = "AI-native open-source embedding database";
218+
homepage = "https://github.com/chroma-core/chroma";
219+
changelog = "https://github.com/chroma-core/chroma/releases/tag/${version}";
220+
license = lib.licenses.asl20;
221+
maintainers = with lib.maintainers; [
222+
fab
223+
sarahec
224+
];
225+
mainProgram = "chroma";
226+
};
213227
};
214228
}

0 commit comments

Comments
 (0)