From 6797226ba160c29a6b7d71c75090c37d957c6f4b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 17 Jan 2026 00:28:39 +0000 Subject: [PATCH 1/2] python3Packages.chromadb: 1.4.0 -> 1.4.1 --- pkgs/development/python-modules/chromadb/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index ae5cc6d03206..057a2aed279f 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -68,14 +68,14 @@ buildPythonPackage rec { pname = "chromadb"; - version = "1.4.0"; + version = "1.4.1"; pyproject = true; src = fetchFromGitHub { owner = "chroma-core"; repo = "chroma"; tag = version; - hash = "sha256-1saQEMaGuhXT+3bSlxl7yCXYptsOiYh3Uyn4Izn5Q4M="; + hash = "sha256-mtUxyuLiwA4l9u+pTPVIsYcvsLPPCI6c8iWK6Lgbwjc="; }; # https://github.com/chroma-core/chroma/issues/5996 @@ -83,7 +83,7 @@ buildPythonPackage rec { cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-zqE3NhTYrHol5Y6/CRMPQeq43Wo+ofic9SrMLqyJJPs="; + hash = "sha256-WdWc/8vNzcEtdxmAAbBDWxhMamxSnK2YaZPWwQ2zzU4="; }; # Can't use fetchFromGitHub as the build expects a zipfile From 51198b882d7b8879e36d19bf87f93f29a8259775 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Jan 2026 11:05:21 +0100 Subject: [PATCH 2/2] python313Packages.chromadb: migrate to finalAttrs --- .../python-modules/chromadb/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/chromadb/default.nix b/pkgs/development/python-modules/chromadb/default.nix index 057a2aed279f..aa10d25bd9f2 100644 --- a/pkgs/development/python-modules/chromadb/default.nix +++ b/pkgs/development/python-modules/chromadb/default.nix @@ -66,7 +66,7 @@ nix-update-script, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "chromadb"; version = "1.4.1"; pyproject = true; @@ -74,7 +74,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "chroma-core"; repo = "chroma"; - tag = version; + tag = finalAttrs.version; hash = "sha256-mtUxyuLiwA4l9u+pTPVIsYcvsLPPCI6c8iWK6Lgbwjc="; }; @@ -82,7 +82,7 @@ buildPythonPackage rec { disabled = pythonAtLeast "3.14"; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; + inherit (finalAttrs) pname version src; hash = "sha256-WdWc/8vNzcEtdxmAAbBDWxhMamxSnK2YaZPWwQ2zzU4="; }; @@ -95,7 +95,7 @@ buildPythonPackage rec { postPatch = '' # Nixpkgs is taking the version from `chromadb_rust_bindings` which is versioned independently substituteInPlace pyproject.toml \ - --replace-fail "dynamic = [\"version\"]" "version = \"${version}\"" + --replace-fail "dynamic = [\"version\"]" "version = \"${finalAttrs.version}\"" # Flip anonymized telemetry to opt in versus current opt-in out for privacy substituteInPlace chromadb/config.py \ @@ -108,9 +108,7 @@ buildPythonPackage rec { "posthog" ]; - build-system = [ - rustPlatform.maturinBuildHook - ]; + build-system = [ rustPlatform.maturinBuildHook ]; nativeBuildInputs = [ cargo @@ -177,14 +175,14 @@ buildPythonPackage rec { # Disable on aarch64-linux due to broken onnxruntime # https://github.com/microsoft/onnxruntime/issues/10038 - pythonImportsCheck = lib.optionals doCheck [ "chromadb" ]; + pythonImportsCheck = lib.optionals finalAttrs.doCheck [ "chromadb" ]; # Test collection breaks on aarch64-linux doCheck = with stdenv.buildPlatform; !(isAarch && isLinux); env = { ZSTD_SYS_USE_PKG_CONFIG = true; - SWAGGER_UI_DOWNLOAD_URL = "file://${swagger-ui}"; + SWAGGER_UI_DOWNLOAD_URL = "file://${finalAttrs.swagger-ui}"; }; pytestFlags = [ @@ -269,7 +267,7 @@ buildPythonPackage rec { meta = { description = "AI-native open-source embedding database"; homepage = "https://github.com/chroma-core/chroma"; - changelog = "https://github.com/chroma-core/chroma/releases/tag/${version}"; + changelog = "https://github.com/chroma-core/chroma/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab @@ -277,4 +275,4 @@ buildPythonPackage rec { ]; mainProgram = "chroma"; }; -} +})