Merge pull request #317151 from natsukium/langchain-chroma/init

python311Packages.langchain-chroma: init at 0.1.1
This commit is contained in:
OTABI Tomoya
2024-06-07 15:32:15 +09:00
committed by GitHub
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
chromadb,
langchain-core,
numpy,
poetry-core,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "langchain-chroma";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-chroma==${version}";
hash = "sha256-PW4vfZVccuYnaR0jtOfHVaXXYoUyQbCfB8NwM+mXFGc=";
};
sourceRoot = "${src.name}/libs/partners/chroma";
build-system = [ poetry-core ];
dependencies = [
langchain-core
chromadb
numpy
];
pythonImportsCheck = [ "langchain_chroma" ];
nativeCheckInputs = [ pytestCheckHook ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"langchain-chroma==(.*)"
];
};
meta = {
description = "Build context-aware reasoning applications";
homepage = "https://github.com/langchain-ai/langchain";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}

View File

@@ -6491,6 +6491,8 @@ self: super: with self; {
langchain = callPackage ../development/python-modules/langchain { };
langchain-chroma = callPackage ../development/python-modules/langchain-chroma { };
langchain-community = callPackage ../development/python-modules/langchain-community { };
langchain-core = callPackage ../development/python-modules/langchain-core { };