blob: 8afb70b1a467a45dfee1e01cc54d5e0d845418f7 (
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.2.9";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-core==${version}";
hash = "sha256-/BUn/NxaE9l3VY6dPshr1JJaHTGzn9NMQhSQ2De65Jg=";
};
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 ];
};
}
|