1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 fetchPypi, 6 jsonpatch, 7 langsmith, 8 packaging, 9 poetry-core, 10 pydantic, 11 pythonOlder, 12 pythonRelaxDepsHook, 13 pyyaml, 14 requests, 15 tenacity, 16}: 17 18buildPythonPackage rec { 19 pname = "langchain-core"; 20 version = "0.1.52"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchPypi { 26 pname = "langchain_core"; 27 inherit version; 28 hash = "sha256-CEw/xFL1ppZsKKs+xdvIuNJvw/YzeAc5KPTinZC2OT8="; 29 }; 30 31 pythonRelaxDeps = [ 32 "langsmith" 33 "packaging" 34 ]; 35 36 build-system = [ poetry-core ]; 37 38 nativeBuildInputs = [ pythonRelaxDepsHook ]; 39 40 dependencies = [ 41 anyio 42 jsonpatch 43 langsmith 44 packaging 45 pydantic 46 pyyaml 47 requests 48 tenacity 49 ]; 50 51 pythonImportsCheck = [ "langchain_core" ]; 52 53 # PyPI source does not have tests 54 doCheck = false; 55 56 meta = with lib; { 57 description = "Building applications with LLMs through composability"; 58 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ natsukium ]; 61 }; 62}