Files
nixpkgs/pkgs/development/python-modules/langchain-standard-tests/default.nix
T

47 lines
910 B
Nix

{
lib,
buildPythonPackage,
poetry-core,
httpx,
langchain-core,
pytest,
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 = [
langchain-core
httpx
];
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 ];
};
}