nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 87 lines 1.7 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 hatchling, 8 9 # dependencies 10 aiohttp, 11 fireworks-ai, 12 langchain-core, 13 openai, 14 pydantic, 15 16 # tests 17 langchain-tests, 18 pytest-asyncio, 19 pytestCheckHook, 20 21 # passthru 22 gitUpdater, 23}: 24 25buildPythonPackage rec { 26 pname = "langchain-fireworks"; 27 version = "1.1.0"; 28 pyproject = true; 29 30 src = fetchFromGitHub { 31 owner = "langchain-ai"; 32 repo = "langchain"; 33 tag = "langchain-fireworks==${version}"; 34 hash = "sha256-gLc3pPxQZTm6PU5r1o7mxlnRI8tCeg/w9jkbbfUCSec="; 35 }; 36 37 sourceRoot = "${src.name}/libs/partners/fireworks"; 38 39 build-system = [ hatchling ]; 40 41 dependencies = [ 42 aiohttp 43 fireworks-ai 44 langchain-core 45 openai 46 pydantic 47 ]; 48 49 pythonRelaxDeps = [ 50 # Each component release requests the exact latest core. 51 # That prevents us from updating individual components. 52 "langchain-core" 53 ]; 54 55 nativeCheckInputs = [ 56 langchain-tests 57 pytest-asyncio 58 pytestCheckHook 59 ]; 60 61 enabledTestPaths = [ "tests/unit_tests" ]; 62 63 disabledTests = [ 64 # Fails when langchain-core gets ahead of this package 65 "test_serdes" 66 ]; 67 68 pythonImportsCheck = [ "langchain_fireworks" ]; 69 70 passthru = { 71 # python updater script sets the wrong tag 72 skipBulkUpdate = true; 73 updateScript = gitUpdater { 74 rev-prefix = "langchain-fireworks=="; 75 }; 76 }; 77 78 meta = { 79 changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; 80 description = "Build LangChain applications with Fireworks"; 81 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/fireworks"; 82 license = lib.licenses.mit; 83 maintainers = with lib.maintainers; [ 84 sarahec 85 ]; 86 }; 87}