Unverified Commit 8416f327 authored by natsukium's avatar natsukium
Browse files

python312Packages.langchain-standard-tests: init at 0.1.1

parent fa9849e0
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  poetry-core,
  httpx,
  langchain-core,
  pytest,
  numpy,
  pytest-asyncio,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "langchain-standard-tests";
  version = "0.1.1";
  pyproject = true;

  # this is an internal library, so there are no tags
  # sync source with langchain-core for easy updates
  inherit (langchain-core) src;
  sourceRoot = "${src.name}/libs/standard-tests";

  build-system = [ poetry-core ];

  dependencies = [
    langchain-core
    httpx
  ];

  buildInputs = [ pytest ];

  pythonImportsCheck = [ "langchain_standard_tests" ];

  nativeBuildInputs = [
    numpy
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    description = "Build context-aware reasoning applications";
    homepage = "https://github.com/langchain-ai/langchain";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ natsukium ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6768,6 +6768,8 @@ self: super: with self; {
  langchain-openai = callPackage ../development/python-modules/langchain-openai { };
  langchain-standard-tests = callPackage ../development/python-modules/langchain-standard-tests { };
  langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
  langcodes = callPackage ../development/python-modules/langcodes { };