2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
poetry-core,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
azure-identity,
|
2024-07-27 06:49:29 +00:00
|
|
|
langchain-core,
|
|
|
|
langchain-openai,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
freezegun,
|
2024-07-27 06:49:29 +00:00
|
|
|
lark,
|
|
|
|
pandas,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-socket,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests-mock,
|
|
|
|
responses,
|
|
|
|
syrupy,
|
|
|
|
toml,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
nix-update-script,
|
2024-07-27 06:49:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langchain-azure-dynamic-sessions";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.2.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "langchain-ai";
|
|
|
|
repo = "langchain";
|
|
|
|
rev = "refs/tags/langchain-azure-dynamic-sessions==${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-tgvoOSr4tpi+tFBan+kw8FZUfUJHcQXv9e1nyeGP0so=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/libs/partners/azure-dynamic-sessions";
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
azure-identity
|
|
|
|
langchain-core
|
|
|
|
langchain-openai
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
freezegun
|
|
|
|
lark
|
|
|
|
pandas
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-socket
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
responses
|
|
|
|
syrupy
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/unit_tests" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "langchain_azure_dynamic_sessions" ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
extraArgs = [
|
|
|
|
"--version-regex"
|
|
|
|
"langchain-azure-dynamic-sessions==(.*)"
|
|
|
|
];
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Integration package connecting Azure Container Apps dynamic sessions and LangChain";
|
|
|
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/azure-dynamic-sessions";
|
|
|
|
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-azure-dynamic-sessions==${version}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|