Unverified Commit 2239f438 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

markitdown-mcp: init at 0.1.5b1 (#488333)

parents b8875ca2 e2cbf735
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  gitUpdater,
  python3Packages,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "markitdown-mcp";
  version = "0.1.5b1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "microsoft";
    repo = "markitdown";
    tag = "v${finalAttrs.version}";
    hash = "sha256-twZEkUih76QEl2dkh81eCBnfX/+tKAHI9wDyCkjfOsQ=";
  };

  sourceRoot = "${finalAttrs.src.name}/packages/markitdown-mcp";

  build-system = [
    python3Packages.hatchling
  ];

  pythonRelaxDeps = [
    "mcp"
  ];

  dependencies = with python3Packages; [
    markitdown
    mcp
  ];

  pythonImportsCheck = [
    "markitdown_mcp"
  ];

  passthru.updateScripts = gitUpdater { };

  meta = {
    description = "MCP server for the markitdown library";
    homepage = "https://github.com/microsoft/markitdown/tree/main/packages/markitdown-mcp";
    changelog = "https://github.com/microsoft/markitdown/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = python3Packages.markitdown.meta.maintainers;
    mainProgram = "markitdown-mcp";
    platforms = lib.platforms.all;
  };
})
+1 −1
Original line number Diff line number Diff line
@@ -107,6 +107,6 @@ buildPythonPackage (finalAttrs: {
    homepage = "https://github.com/microsoft/markitdown";
    changelog = "https://github.com/microsoft/markitdown/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ malik ];
  };
})