{ lib, buildPythonPackage, fetchFromGitHub, # build-system hatchling, # dependencies aiohttp, fireworks-ai, langchain-core, openai, pydantic, # tests langchain-tests, pytest-asyncio, pytestCheckHook, # passthru gitUpdater, }: buildPythonPackage rec { pname = "langchain-fireworks"; version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-fireworks==${version}"; hash = "sha256-gLc3pPxQZTm6PU5r1o7mxlnRI8tCeg/w9jkbbfUCSec="; }; sourceRoot = "${src.name}/libs/partners/fireworks"; build-system = [ hatchling ]; dependencies = [ aiohttp fireworks-ai langchain-core openai pydantic ]; pythonRelaxDeps = [ # Each component release requests the exact latest core. # That prevents us from updating individual components. "langchain-core" ]; nativeCheckInputs = [ langchain-tests pytest-asyncio pytestCheckHook ]; enabledTestPaths = [ "tests/unit_tests" ]; disabledTests = [ # Fails when langchain-core gets ahead of this package "test_serdes" ]; pythonImportsCheck = [ "langchain_fireworks" ]; passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "langchain-fireworks=="; }; }; meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; description = "Build LangChain applications with Fireworks"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/fireworks"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; }; }