Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies httpx, langchain-core, numpy, pytest-asyncio, pytest-recording, pytest-socket, syrupy, vcrpy,
# buildInputs pytestCheckHook,
# tests pytest-benchmark,
# passthru gitUpdater,}:
buildPythonPackage (finalAttrs: { pname = "langchain-tests"; version = "1.1.9"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-tests==${finalAttrs.version}"; hash = "sha256-GbOasYdPGqk1WJeoqL8DYd1Qizvhjeq8Dc+RgE4iBaA="; };
sourceRoot = "${finalAttrs.src.name}/libs/standard-tests";
build-system = [ hatchling ];
pythonRemoveDeps = [ "pytest-benchmark" "pytest-codspeed" ];
pythonRelaxDeps = [ "pytest" "syrupy" "vcrpy" ];
dependencies = [ httpx langchain-core numpy pytest-asyncio pytest-benchmark pytest-recording pytest-socket syrupy vcrpy ];
pythonImportsCheck = [ "langchain_tests" ];
nativeBuildInputs = [ pytestCheckHook ];
disabledTestMarks = [ "benchmark" ];
passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "langchain-tests=="; ignoredVersions = "a|b|dev|rc"; }; };
meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${finalAttrs.src.tag}"; description = "Build context-aware reasoning applications"; homepage = "https://github.com/langchain-ai/langchain"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium sarahec ]; };})