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