blob: fb11a1abeed4a8c3b1946e0e913fcf83674b5caf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 ];
};
}
|