Something went wrong. Try again.
lol
Something went wrong. Try again.
1.8 kB · 86 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies langchain-core, tokenizers, httpx, httpx-sse, pydantic,
# tests langchain-tests, pytest-asyncio, pytestCheckHook,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-mistralai"; version = "1.1.2"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-mistralai==${version}"; hash = "sha256-vCYdBBN9vU8gWedCxKXnzLzZ5C7pYl3KyECBNAQggto="; };
sourceRoot = "${src.name}/libs/partners/mistralai";
build-system = [ hatchling ];
dependencies = [ langchain-core tokenizers httpx httpx-sse pydantic ];
nativeCheckInputs = [ langchain-tests pytest-asyncio pytestCheckHook ];
enabledTestPaths = [ "tests/unit_tests" ];
disabledTests = [ # Comparison error due to message formatting differences "test__convert_dict_to_message_tool_call" # Fails when langchain-core gets ahead of this package "test_serdes" # RuntimeError: Cannot send a request, as the client has been closed. # Tries to download from huggingface hub "test_mistral_init" ];
pythonImportsCheck = [ "langchain_mistralai" ];
passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "langchain-mistralai=="; }; };
meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; description = "Build LangChain applications with mistralai"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/mistralai"; license = lib.licenses.mit; maintainers = [ lib.maintainers.sarahec ]; };}