Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 94 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, buildPythonPackage, fetchFromGitHub, freezegun, grandalf, jsonpatch, langsmith, numpy, packaging, poetry-core, pydantic, pytest-asyncio, pytest-mock, pytest-xdist, pytestCheckHook, pythonOlder, pythonRelaxDepsHook, pyyaml, syrupy, tenacity, writeScript,}:
buildPythonPackage rec { pname = "langchain-core"; version = "0.2.1"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "langchain-core==${version}"; hash = "sha256-D0y6kW5bWcCKW2TwVPlZcAUxqADgsOm9fWySAjHYYIg="; };
sourceRoot = "${src.name}/libs/core";
pythonRelaxDeps = [ "langsmith" "packaging" ];
build-system = [ poetry-core ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [ jsonpatch langsmith packaging pydantic pyyaml tenacity ];
pythonImportsCheck = [ "langchain_core" ];
nativeCheckInputs = [ freezegun grandalf numpy pytest-asyncio pytest-mock pytest-xdist pytestCheckHook syrupy ];
pytestFlagsArray = [ "tests/unit_tests" ];
passthru = { updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p nix-update
set -eu -o pipefail nix-update --commit --version-regex 'langchain-core==(.*)' python3Packages.langchain-core nix-update --commit --version-regex 'langchain-text-splitters==(.*)' python3Packages.langchain-text-splitters nix-update --commit --version-regex 'langchain==(.*)' python3Packages.langchain nix-update --commit --version-regex 'langchain-community==(.*)' python3Packages.langchain-community ''; };
meta = with lib; { description = "Building applications with LLMs through composability"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core"; changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; };}