1{
2 lib,
3 buildPythonPackage,
4
5 # build-system
6 poetry-core,
7
8 # dependencies
9 httpx,
10 langchain-core,
11 syrupy,
12
13 # buildInputs
14 pytest,
15
16 # tests
17 numpy,
18 pytest-asyncio,
19 pytestCheckHook,
20}:
21
22buildPythonPackage rec {
23 pname = "langchain-standard-tests";
24 pyproject = true;
25
26 # this is an internal library, so there are no tags
27 # sync source with langchain-core for easy updates
28 inherit (langchain-core) src version;
29 sourceRoot = "${src.name}/libs/standard-tests";
30
31 build-system = [ poetry-core ];
32
33 dependencies = [
34 httpx
35 langchain-core
36 syrupy
37 ];
38
39 buildInputs = [ pytest ];
40
41 pythonImportsCheck = [ "langchain_standard_tests" ];
42
43 nativeBuildInputs = [
44 numpy
45 pytest-asyncio
46 pytestCheckHook
47 ];
48
49 meta = {
50 description = "Build context-aware reasoning applications";
51 homepage = "https://github.com/langchain-ai/langchain";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [
54 natsukium
55 sarahec
56 ];
57 };
58}