Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

94 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
pdm-backend,
# dependencies
httpx,
langchain-core,
syrupy,
pytest-benchmark,
pytest-codspeed,
pytest-recording,
vcrpy,
# buildInputs
pytest,
# tests
numpy,
pytest-asyncio_0,
pytest-socket,
pytestCheckHook,
# passthru
gitUpdater,
}:
buildPythonPackage rec {
pname = "langchain-tests";
version = "0.3.21";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-tests==${version}";
hash = "sha256-CufnUFhYTENuq4/32u0w3UZb7TdZxEpshyQqLH6NEZo=";
};
sourceRoot = "${src.name}/libs/standard-tests";
build-system = [ pdm-backend ];
pythonRelaxDeps = [
# Each component release requests the exact latest core.
# That prevents us from updating individual components.
"langchain-core"
"numpy"
];
dependencies = [
httpx
langchain-core
pytest-asyncio_0
pytest-benchmark
pytest-codspeed
pytest-recording
pytest-socket
syrupy
vcrpy
];
buildInputs = [ pytest ];
pythonImportsCheck = [ "langchain_tests" ];
nativeBuildInputs = [
numpy
pytestCheckHook
];
passthru = {
# python updater script sets the wrong tag
skipBulkUpdate = true;
updateScript = gitUpdater {
rev-prefix = "langchain-tests==";
};
};
meta = {
changelog = "https://github.com/langchain-ai/langchain/releases/tag/${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
];
};
}