Unverified Commit 4c80732e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.mcpadapt: init at 0.0.15, python313Packages.smolagents:...

python312Packages.mcpadapt: init at 0.0.15, python313Packages.smolagents: 1.11.0 -> 1.12.0 (#391788)
parents 1a05eebd a4359d68
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  jsonref,
  langchain,
  langgraph,
  llama-index,
  mcp,
  pytest-asyncio,
  pytestCheckHook,
  python-dotenv,
  smolagents,
}:

buildPythonPackage rec {
  pname = "mcpadapt";
  version = "0.0.15";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "grll";
    repo = "mcpadapt";
    tag = "v${version}";
    hash = "sha256-Cpm6jfdAyhMNc3bnDcF42G24VdStM2OpDTsGHS4IEMM=";
  };

  build-system = [ hatchling ];

  dependencies = [
    jsonref
    mcp
    python-dotenv
  ];

  optional-dependencies = {
    langchain = [
      langchain
      # langchain-anthropic
      langgraph
    ];
    llamaindex = [ llama-index ];
  };

  pythonImportsCheck = [ "mcpadapt" ];

  # Circular dependency smolagents
  doCheck = false;

  meta = {
    description = "MCP servers tool";
    homepage = "https://github.com/grll/mcpadapt";
    changelog = "https://github.com/grll/mcpadapt/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+6 −3
Original line number Diff line number Diff line
@@ -12,9 +12,11 @@
  litellm,
  markdownify,
  mcp,
  mcpadapt,
  openai,
  pandas,
  pillow,
  pytest-datadir,
  pytestCheckHook,
  python-dotenv,
  rank-bm25,
@@ -30,14 +32,14 @@

buildPythonPackage rec {
  pname = "smolagents";
  version = "1.11.0";
  version = "1.12.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "huggingface";
    repo = "smolagents";
    tag = "v${version}";
    hash = "sha256-6+fI5Zp2UyDgcCUXYT34zumDBqkIeW+TXnRNA+SFoxI=";
    hash = "sha256-OgivL7L6IOqIEDHO3JUrxluMZoq768DD3hhUpIh1fac=";
  };

  build-system = [ setuptools ];
@@ -68,7 +70,7 @@ buildPythonPackage rec {
    litellm = [ litellm ];
    mcp = [
      mcp
      # mcpadapt
      mcpadapt
    ];
    # mlx-lm = [ mlx-lm ];
    openai = [ openai ];
@@ -98,6 +100,7 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    ipython
    pytest-datadir
    pytestCheckHook
  ] ++ lib.flatten (builtins.attrValues optional-dependencies);

+2 −0
Original line number Diff line number Diff line
@@ -8226,6 +8226,8 @@ self: super: with self; {
  mcp = callPackage ../development/python-modules/mcp { };
  mcpadapt = callPackage ../development/python-modules/mcpadapt { };
  mcstatus = callPackage ../development/python-modules/mcstatus { };
  mcuuid = callPackage ../development/python-modules/mcuuid { };