Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 78 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ 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 ]; };}