depot/third_party/nixpkgs/pkgs/development/python-modules/langchain-standard-tests/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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 ];
};
}