-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
vectorcode: pin chromadb at 0.6.3 #417720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,56 @@ | ||
| { | ||
| lib, | ||
| python3Packages, | ||
| cargo, | ||
| fetchFromGitHub, | ||
| installShellFiles, | ||
| pkg-config, | ||
| protobuf, | ||
| python3, | ||
| rustc, | ||
| rustPlatform, | ||
| versionCheckHook, | ||
|
|
||
| lspSupport ? true, | ||
| }: | ||
|
|
||
| python3Packages.buildPythonApplication rec { | ||
| let | ||
| python = python3.override { | ||
| packageOverrides = self: super: { | ||
| # https://github.com/Davidyz/VectorCode/pull/36 | ||
| chromadb = super.chromadb.overridePythonAttrs (old: rec { | ||
| version = "0.6.3"; | ||
| src = fetchFromGitHub { | ||
| owner = "chroma-core"; | ||
| repo = "chroma"; | ||
| tag = version; | ||
| hash = "sha256-yvAX8buETsdPvMQmRK5+WFz4fVaGIdNlfhSadtHwU5U="; | ||
| }; | ||
| cargoDeps = rustPlatform.fetchCargoVendor { | ||
| pname = "chromadb"; | ||
| inherit version src; | ||
| hash = "sha256-lHRBXJa/OFNf4x7afEJw9XcuDveTBIy3XpQ3+19JXn4="; | ||
| }; | ||
| postPatch = null; | ||
| build-system = with self; [ | ||
| setuptools | ||
| setuptools-scm | ||
| ]; | ||
| nativeBuildInputs = [ | ||
| cargo | ||
| pkg-config | ||
| protobuf | ||
| rustc | ||
| rustPlatform.cargoSetupHook | ||
| ]; | ||
| dependencies = old.dependencies ++ [ | ||
| self.chroma-hnswlib | ||
| ]; | ||
| doCheck = false; | ||
|
||
| }); | ||
| }; | ||
| }; | ||
| in | ||
| python.pkgs.buildPythonApplication rec { | ||
| pname = "vectorcode"; | ||
| version = "0.6.10"; | ||
| pyproject = true; | ||
|
|
@@ -20,12 +62,12 @@ python3Packages.buildPythonApplication rec { | |
| hash = "sha256-k9YpsVFV1HkIIIFPB7Iz7Jar+lY5vK6gpzNIlX55ZDY="; | ||
| }; | ||
|
|
||
| build-system = with python3Packages; [ | ||
| build-system = with python.pkgs; [ | ||
| pdm-backend | ||
| ]; | ||
|
|
||
| dependencies = | ||
| with python3Packages; | ||
| with python.pkgs; | ||
| [ | ||
| chromadb | ||
| colorlog | ||
|
|
@@ -44,7 +86,7 @@ python3Packages.buildPythonApplication rec { | |
| ] | ||
| ++ lib.optionals lspSupport optional-dependencies.lsp; | ||
|
|
||
| optional-dependencies = with python3Packages; { | ||
| optional-dependencies = with python.pkgs; { | ||
| intel = [ | ||
| openvino | ||
| optimum | ||
|
|
@@ -77,7 +119,7 @@ python3Packages.buildPythonApplication rec { | |
| installShellFiles | ||
| versionCheckHook | ||
| ] | ||
| ++ (with python3Packages; [ | ||
| ++ (with python.pkgs; [ | ||
| mcp | ||
| pygls | ||
| pytestCheckHook | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.