Unverified Commit 95506c9e authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

playwright: 1.54.0 -> 1.56.1 (#460313)

parents 206bfc56 45e0a68e
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -5,19 +5,18 @@
  playwright-driver,
  playwright-test,
}:

buildNpmPackage rec {
  pname = "playwright-mcp";
  version = "0.0.34";
  version = "0.0.41";

  src = fetchFromGitHub {
    owner = "Microsoft";
    repo = "playwright-mcp";
    tag = "v${version}";
    hash = "sha256-SGSzX41D9nOTsGiU16tRFXgarWgePRsNWIcEnNGH0lQ=";
    hash = "sha256-OoTAYd1/hedR0k/3b83YOPaOviLWv1Y3pffNoeSf2g4=";
  };

  npmDepsHash = "sha256-+6HmuR1Z5cJkoZq/vsFq6wNsYpZeDS42wwmh3hEgJhM=";
  npmDepsHash = "sha256-xgOPlCnlRXJZAZRM4xZ7SYSA5lsPglSewXxY19TbD/A=";

  postInstall = ''
    rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright
@@ -26,9 +25,13 @@ buildNpmPackage rec {
    ln -s ${playwright-test}/lib/node_modules/playwright-core $out/lib/node_modules/@playwright/mcp/node_modules/playwright-core

    wrapProgram $out/bin/mcp-server-playwright \
      --set PLAYWRIGHT_BROWSERS_PATH ${playwright-driver.browsers}
      --set PLAYWRIGHT_BROWSERS_PATH ${playwright-driver.browsers} \
      --set-default PLAYWRIGHT_MCP_BROWSER chromium \
      --run 'if [ -z "$PLAYWRIGHT_MCP_USER_DATA_DIR" ]; then PLAYWRIGHT_MCP_USER_DATA_DIR="$(mktemp -d -t mcp-pw-XXXXXX)"; export PLAYWRIGHT_MCP_USER_DATA_DIR; trap "rm -rf \"$PLAYWRIGHT_MCP_USER_DATA_DIR\"" EXIT; fi'
  '';

  dontNpmBuild = true;

  passthru = {
    # Package and playwright driver versions are tightly coupled.
    skipBulkUpdate = true;
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ in
buildPythonPackage rec {
  pname = "playwright";
  # run ./pkgs/development/python-modules/playwright/update.sh to update
  version = "1.54.0";
  version = "1.56.0";
  pyproject = true;
  disabled = pythonOlder "3.9";

@@ -29,7 +29,7 @@ buildPythonPackage rec {
    owner = "microsoft";
    repo = "playwright-python";
    tag = "v${version}";
    hash = "sha256-xyuofDL0hWL8Gn4sYNLKte8q/4bMo+3aSbYaf5iWiBk=";
    hash = "sha256-46+UxHimmmyQMTe+G2ootSbVX9pAzdfdyTO2qrWd9l8=";
  };

  patches = [
+7 −7
Original line number Diff line number Diff line
@@ -2,19 +2,19 @@
  "comment": "This file is kept up to date via update.sh",
  "browsers": {
    "chromium": {
      "revision": "1181",
      "browserVersion": "139.0.7258.5"
      "revision": "1194",
      "browserVersion": "141.0.7390.37"
    },
    "chromium-headless-shell": {
      "revision": "1181",
      "browserVersion": "139.0.7258.5"
      "revision": "1194",
      "browserVersion": "141.0.7390.37"
    },
    "firefox": {
      "revision": "1489",
      "browserVersion": "140.0.2"
      "revision": "1495",
      "browserVersion": "142.0.1"
    },
    "webkit": {
      "revision": "2191",
      "revision": "2215",
      "revisionOverrides": {
        "debian11-x64": "2105",
        "debian11-arm64": "2105",
+4 −4
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ let
      stripRoot = false;
      hash =
        {
          x86_64-linux = "sha256-AYh2urKZdjXCELimYaFihWp0FbDLf4uRrKLJZVxug5M=";
          aarch64-linux = "sha256-diBiy0z51BxGK0PcfQOf1aryUcZesKu/UHBSZUjqwMk=";
          x86_64-linux = "sha256-khYVM0jocno97lV8mRH71WHzopIjnq3eX/PD1kQuZnE=";
          aarch64-linux = "sha256-1G0UAIFmBcij0EXq1VVxvku5iQmGGWvQxdBT+zRW0ZM=";
        }
        .${system} or throwSystem;
    };
@@ -66,8 +66,8 @@ let
    stripRoot = false;
    hash =
      {
        x86_64-darwin = "sha256-vIJuDjkasUYlMW0aCOyztyrlh5kvcwNR9GBaoa/yh/M=";
        aarch64-darwin = "sha256-6Q6nz0H2749srdMF/puk/gnG1gQBEnWe9cQO3owL2OU=";
        x86_64-darwin = "sha256-R4XdK3wD3eoNREydU34MkrvCkI2VqSxIiM7Zhf5EvjM=";
        aarch64-darwin = "sha256-8CyMLQdtWhMUxwd6UWQ7vGtyi69mCxEA6WwXk2S82qA=";
      }
      .${system} or throwSystem;
  };
+4 −4
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ let
      url = "https://playwright.azureedge.net/builds/chromium/${revision}/chromium-${suffix}.zip";
      hash =
        {
          x86_64-linux = "sha256-R7nMCVpUqgRwtB0syhfIK81maiTVWr8lYBLp4bR8VBg=";
          aarch64-linux = "sha256-4fc4X7QwBigktmEeseuqIyEeV70Dy3eO/femXrftMd0=";
          x86_64-linux = "sha256-uf8FUMgUUyM1xw5eUuMUgUg9GIW8bDcNZz0mIfnoTLM=";
          aarch64-linux = "sha256-j+j6w99EmfehV+qyqbLFK2H5HpB2qakq93GgdTMPibU=";
        }
        .${system} or throwSystem;
    };
@@ -109,8 +109,8 @@ let
    stripRoot = false;
    hash =
      {
        x86_64-darwin = "sha256-0u1AStbUTX+qgUmg2DvL59B4b265WywDaBV+MdSuaNE=";
        aarch64-darwin = "sha256-4pg4wmNTF8mw+APmdpvYlFxb9zc6OUh11oW5gCRKETY=";
        x86_64-darwin = "sha256-dsyw6fT/jfx2RC2wEFMgIkIpVYu+6TXaDpFLNHX5als=";
        aarch64-darwin = "sha256-G7PlHJPlDQXQzO5MGuCuGQUxV9VqKY4yQebuoltVq6U=";
      }
      .${system} or throwSystem;
  };
Loading