Something went wrong. Try again.
lol
Something went wrong. Try again.
2.0 kB · 87 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast,
# build-system pdm-backend,
# dependencies langchain-core, langchain-community,
# testing langchain-tests, pytestCheckHook,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-experimental"; version = "0.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-experimental"; tag = "libs/experimental/v${version}"; hash = "sha256-3hz63DCoym2V4b6Wzi0eH+B8mvGu7pqRNj3Ltk04UTk="; };
sourceRoot = "${src.name}/libs/experimental";
patches = [ # Remove it when https://github.com/langchain-ai/langchain-experimental/pull/58 is merged and released ./001-avoid-check-fullpath.patch ];
build-system = [ pdm-backend ];
pythonRelaxDeps = [ # Each component release requests the exact latest core. # That prevents us from updating individual components. "langchain-core" "langchain-community" ];
dependencies = [ langchain-core langchain-community ];
nativeCheckInputs = [ langchain-tests pytestCheckHook ];
pytestFlagsArray = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_experimental" ];
disabledTests = lib.optionals (pythonAtLeast "3.14") [ # AttributeError: module 'ast' has no attribute 'Str' # https://github.com/langchain-ai/langchain-community/issues/492 "test_color_question_1" "test_color_question_2" ];
passthru.updateScript = gitUpdater { rev-prefix = "libs/experimental/v"; };
meta = { changelog = "https://github.com/langchain-ai/langchain-experimental/releases/tag/${src.tag}"; description = "Experimental features for LangChain"; homepage = "https://github.com/langchain-ai/langchain-experimental/tree/main/libs/experimental"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mrdev023 sarahec ]; };}