Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies langchain-core, langchain-text-splitters, langsmith, pydantic, pyyaml, requests, sqlalchemy,
# tests blockbuster, cffi, freezegun, langchain-openai, langchain-tests, lark, numpy, packaging, pandas, pytest-asyncio, pytest-dotenv, pytest-mock, pytest-socket, pytest-xdist, pytest8_3CheckHook, requests-mock, responses, syrupy, toml,
# update gitUpdater,}:
buildPythonPackage (finalAttrs: { pname = "langchain-classic"; version = "1.0.8"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-classic==${finalAttrs.version}"; hash = "sha256-Xskg6bPmRv7iLjppUF11rqmHg2YJWETVT1EMhzK7Svo="; };
sourceRoot = "${finalAttrs.src.name}/libs/langchain";
build-system = [ hatchling ];
dependencies = [ langchain-core langchain-text-splitters langsmith pydantic pyyaml requests sqlalchemy ];
nativeCheckInputs = [ blockbuster cffi freezegun langchain-core langchain-openai langchain-tests langchain-text-splitters lark numpy packaging pandas pytest-asyncio pytest-dotenv pytest-mock pytest-socket pytest-xdist pytest8_3CheckHook requests-mock responses syrupy toml ];
enabledTestPaths = [ # integration_tests require network access, database access and require `OPENAI_API_KEY`, etc. "tests/unit_tests" ];
disabledTests = [ # Network access (web.example.com) "test_socket_disabled" # Fails due to JSON formatting differences "test_configurable" ];
# Bulk updater selects wrong tag passthru = { skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "langchain-classic=="; ignoredVersions = "a|b|dev|rc"; }; };
pythonImportsCheck = [ "langchain_classic" ];
meta = { description = "Classic (0.x) compatibility layer for LangChain"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/langchain"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; };})