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 1 { 2 2 lib, 3 - python3Packages, 3 + cargo, 4 4 fetchFromGitHub, 5 5 installShellFiles, 6 + pkg-config, 7 + protobuf, 8 + python3, 9 + rustc, 10 + rustPlatform, 6 11 versionCheckHook, 7 12 8 13 lspSupport ? true, 9 14 }: 10 15 11 - python3Packages.buildPythonApplication rec { 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 { 12 54 pname = "vectorcode"; 13 55 version = "0.6.10"; 14 56 pyproject = true; ··· 20 62 hash = "sha256-k9YpsVFV1HkIIIFPB7Iz7Jar+lY5vK6gpzNIlX55ZDY="; 21 63 }; 22 64 23 - build-system = with python3Packages; [ 65 + build-system = with python.pkgs; [ 24 66 pdm-backend 25 67 ]; 26 68 27 69 dependencies = 28 - with python3Packages; 70 + with python.pkgs; 29 71 [ 30 72 chromadb 31 73 colorlog ··· 44 86 ] 45 87 ++ lib.optionals lspSupport optional-dependencies.lsp; 46 88 47 - optional-dependencies = with python3Packages; { 89 + optional-dependencies = with python.pkgs; { 48 90 intel = [ 49 91 openvino 50 92 optimum ··· 77 119 installShellFiles 78 120 versionCheckHook 79 121 ] 80 - ++ (with python3Packages; [ 122 + ++ (with python.pkgs; [ 81 123 mcp 82 124 pygls 83 125 pytestCheckHook