tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.langchain-experimental: Init at 0.3.4
Florian RICHER
6 months ago
f622331f
29787267
+91
3 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
langchain-experimental
001-avoid-check-fullpath.patch
default.nix
top-level
python-packages.nix
+13
pkgs/development/python-modules/langchain-experimental/001-avoid-check-fullpath.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/tests/unit_tests/test_bash.py b/tests/unit_tests/test_bash.py
2
+
index ba7b0d0..cade19e 100644
3
+
--- a/tests/unit_tests/test_bash.py
4
+
+++ b/tests/unit_tests/test_bash.py
5
+
@@ -58,7 +58,7 @@ def test_incorrect_command_return_err_output() -> None:
6
+
session = BashProcess(return_err_output=True)
7
+
output = session.run(["invalid_command"])
8
+
assert re.match(
9
+
- r"^/bin/sh:.*invalid_command.*(?:not found|Permission denied).*$", output
10
+
+ r".*/bin/sh:.*invalid_command.*(?:not found|Permission denied).*$", output
11
+
)
12
+
13
+
+76
pkgs/development/python-modules/langchain-experimental/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
buildPythonPackage,
4
+
fetchFromGitHub,
5
+
6
+
# build-system
7
+
poetry-core,
8
+
9
+
# dependencies
10
+
langchain-core,
11
+
langchain-community,
12
+
13
+
# testing
14
+
langchain-tests,
15
+
pytestCheckHook,
16
+
17
+
# passthru
18
+
gitUpdater,
19
+
}:
20
+
21
+
buildPythonPackage rec {
22
+
pname = "langchain-experimental";
23
+
version = "0.3.4";
24
+
pyproject = true;
25
+
26
+
src = fetchFromGitHub {
27
+
owner = "langchain-ai";
28
+
repo = "langchain-experimental";
29
+
tag = "libs/experimental/v${version}";
30
+
hash = "sha256-KgGfJfxHOfpwVVo/OcbOjiO5pbxoDE1MiyKqUwsqfIg=";
31
+
};
32
+
33
+
sourceRoot = "${src.name}/libs/experimental";
34
+
35
+
patches = [
36
+
# Remove it when https://github.com/langchain-ai/langchain-experimental/pull/58 is merged and released
37
+
./001-avoid-check-fullpath.patch
38
+
];
39
+
40
+
build-system = [
41
+
poetry-core
42
+
];
43
+
44
+
pythonRelaxDeps = [
45
+
# Each component release requests the exact latest core.
46
+
# That prevents us from updating individual components.
47
+
"langchain-core"
48
+
"langchain-community"
49
+
];
50
+
51
+
dependencies = [
52
+
langchain-core
53
+
langchain-community
54
+
];
55
+
56
+
nativeCheckInputs = [
57
+
langchain-tests
58
+
pytestCheckHook
59
+
];
60
+
61
+
pytestFlagsArray = [ "tests/unit_tests" ];
62
+
63
+
pythonImportsCheck = [ "langchain_experimental" ];
64
+
65
+
passthru.updateScript = gitUpdater {
66
+
rev-prefix = "libs/experimental/v";
67
+
};
68
+
69
+
meta = {
70
+
changelog = "https://github.com/langchain-ai/langchain-experimental/releases/tag/${src.tag}";
71
+
description = "Package add experimental features on LangChain";
72
+
homepage = "https://github.com/langchain-ai/langchain-experimental/tree/main/libs/experimental";
73
+
license = lib.licenses.mit;
74
+
maintainers = with lib.maintainers; [ mrdev023 ];
75
+
};
76
+
}
+2
pkgs/top-level/python-packages.nix
···
7717
7718
langchain-deepseek = callPackage ../development/python-modules/langchain-deepseek { };
7719
0
0
7720
langchain-fireworks = callPackage ../development/python-modules/langchain-fireworks { };
7721
7722
langchain-groq = callPackage ../development/python-modules/langchain-groq { };
···
7717
7718
langchain-deepseek = callPackage ../development/python-modules/langchain-deepseek { };
7719
7720
+
langchain-experimental = callPackage ../development/python-modules/langchain-experimental { };
7721
+
7722
langchain-fireworks = callPackage ../development/python-modules/langchain-fireworks { };
7723
7724
langchain-groq = callPackage ../development/python-modules/langchain-groq { };