vectorcode: pin chromadb at 0.6.3 (#417720)

authored by Gaétan Lepage and committed by GitHub 665b0b70 8f30f012

+48 -6
+48 -6
pkgs/by-name/ve/vectorcode/package.nix
··· 1 { 2 lib, 3 - python3Packages, 4 fetchFromGitHub, 5 installShellFiles, 6 versionCheckHook, 7 8 lspSupport ? true, 9 }: 10 11 - python3Packages.buildPythonApplication rec { 12 pname = "vectorcode"; 13 version = "0.6.10"; 14 pyproject = true; ··· 20 hash = "sha256-k9YpsVFV1HkIIIFPB7Iz7Jar+lY5vK6gpzNIlX55ZDY="; 21 }; 22 23 - build-system = with python3Packages; [ 24 pdm-backend 25 ]; 26 27 dependencies = 28 - with python3Packages; 29 [ 30 chromadb 31 colorlog ··· 44 ] 45 ++ lib.optionals lspSupport optional-dependencies.lsp; 46 47 - optional-dependencies = with python3Packages; { 48 intel = [ 49 openvino 50 optimum ··· 77 installShellFiles 78 versionCheckHook 79 ] 80 - ++ (with python3Packages; [ 81 mcp 82 pygls 83 pytestCheckHook
··· 1 { 2 lib, 3 + cargo, 4 fetchFromGitHub, 5 installShellFiles, 6 + pkg-config, 7 + protobuf, 8 + python3, 9 + rustc, 10 + rustPlatform, 11 versionCheckHook, 12 13 lspSupport ? true, 14 }: 15 16 + let 17 + python = python3.override { 18 + packageOverrides = self: super: { 19 + # https://github.com/Davidyz/VectorCode/pull/36 20 + chromadb = super.chromadb.overridePythonAttrs (old: rec { 21 + version = "0.6.3"; 22 + src = fetchFromGitHub { 23 + owner = "chroma-core"; 24 + repo = "chroma"; 25 + tag = version; 26 + hash = "sha256-yvAX8buETsdPvMQmRK5+WFz4fVaGIdNlfhSadtHwU5U="; 27 + }; 28 + cargoDeps = rustPlatform.fetchCargoVendor { 29 + pname = "chromadb"; 30 + inherit version src; 31 + hash = "sha256-lHRBXJa/OFNf4x7afEJw9XcuDveTBIy3XpQ3+19JXn4="; 32 + }; 33 + postPatch = null; 34 + build-system = with self; [ 35 + setuptools 36 + setuptools-scm 37 + ]; 38 + nativeBuildInputs = [ 39 + cargo 40 + pkg-config 41 + protobuf 42 + rustc 43 + rustPlatform.cargoSetupHook 44 + ]; 45 + dependencies = old.dependencies ++ [ 46 + self.chroma-hnswlib 47 + ]; 48 + doCheck = false; 49 + }); 50 + }; 51 + }; 52 + in 53 + python.pkgs.buildPythonApplication rec { 54 pname = "vectorcode"; 55 version = "0.6.10"; 56 pyproject = true; ··· 62 hash = "sha256-k9YpsVFV1HkIIIFPB7Iz7Jar+lY5vK6gpzNIlX55ZDY="; 63 }; 64 65 + build-system = with python.pkgs; [ 66 pdm-backend 67 ]; 68 69 dependencies = 70 + with python.pkgs; 71 [ 72 chromadb 73 colorlog ··· 86 ] 87 ++ lib.optionals lspSupport optional-dependencies.lsp; 88 89 + optional-dependencies = with python.pkgs; { 90 intel = [ 91 openvino 92 optimum ··· 119 installShellFiles 120 versionCheckHook 121 ] 122 + ++ (with python.pkgs; [ 123 mcp 124 pygls 125 pytestCheckHook