
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags` instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
pdm-backend,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
fireworks-ai,
|
|
langchain-core,
|
|
openai,
|
|
pydantic,
|
|
|
|
# tests
|
|
langchain-tests,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
|
|
# passthru
|
|
gitUpdater,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langchain-fireworks";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "langchain-ai";
|
|
repo = "langchain";
|
|
tag = "langchain-fireworks==${version}";
|
|
hash = "sha256-OZou323FAk2I4YuQV7sllbzDwFQWy/90FK3gIHnEBd0=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/libs/partners/fireworks";
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
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" ];
|
|
|
|
pythonImportsCheck = [ "langchain_fireworks" ];
|
|
|
|
passthru.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 = [
|
|
lib.maintainers.sarahec
|
|
];
|
|
};
|
|
}
|