159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
56 lines
995 B
Nix
56 lines
995 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
httpx,
|
|
langchain-core,
|
|
syrupy,
|
|
|
|
# buildInputs
|
|
pytest,
|
|
|
|
# tests
|
|
numpy,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langchain-standard-tests";
|
|
version = "0.1.1";
|
|
pyproject = true;
|
|
|
|
# this is an internal library, so there are no tags
|
|
# sync source with langchain-core for easy updates
|
|
inherit (langchain-core) src;
|
|
sourceRoot = "${src.name}/libs/standard-tests";
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
langchain-core
|
|
syrupy
|
|
];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
pythonImportsCheck = [ "langchain_standard_tests" ];
|
|
|
|
nativeBuildInputs = [
|
|
numpy
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Build context-aware reasoning applications";
|
|
homepage = "https://github.com/langchain-ai/langchain";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
};
|
|
}
|