playwright: 1.52 -> 1.53 (#420933)

* playwright: 1.52.0 -> 1.53.1

* playwright-mcp: init at 0.0.29
This commit is contained in:
Jonas Chevalier
2025-07-02 09:16:10 +02:00
committed by GitHub
8 changed files with 75 additions and 32 deletions
@@ -0,0 +1,45 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
playwright-driver,
playwright-test,
}:
buildNpmPackage rec {
pname = "playwright-mcp";
version = "0.0.29";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "playwright-mcp";
tag = "v${version}";
hash = "sha256-owSoE3+jSg09dFpM5wv7FJovzsX5ZMp/9IIQhkmSZt0=";
};
npmDepsHash = "sha256-jweIBhlVci8CFBIYlFp0opc1ilWMcHt0is4qgTiYNcQ=";
postInstall = ''
rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright
rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright-core
ln -s ${playwright-test}/lib/node_modules/playwright $out/lib/node_modules/@playwright/mcp/node_modules/playwright
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}
'';
passthru = {
# Package and playwright driver versions are tightly coupled.
skipBulkUpdate = true;
};
meta = {
changelog = "https://github.com/Microsoft/playwright-mcp/releases/tag/v${version}";
description = "Playwright MCP server";
homepage = "https://github.com/Microsoft/playwright-mcp";
license = lib.licenses.asl20;
mainProgram = "mcp-server-playwright";
maintainers = [ lib.maintainers.kalekseev ];
};
}
@@ -22,7 +22,7 @@ in
buildPythonPackage rec {
pname = "playwright";
# run ./pkgs/development/python-modules/playwright/update.sh to update
version = "1.52.0";
version = "1.53.0";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "microsoft";
repo = "playwright-python";
tag = "v${version}";
hash = "sha256-8hl+5kIORq9uwYbf9354iqlL0RIkhTnokzQXoYFr5AI=";
hash = "sha256-jFS2Luq/9mRsXZ65H3VLw+sTBplVNVy/yZYrpF5Hc0M=";
};
patches = [
@@ -2,19 +2,19 @@
"comment": "This file is kept up to date via update.sh",
"browsers": {
"chromium": {
"revision": "1169",
"browserVersion": "136.0.7103.25"
"revision": "1179",
"browserVersion": "138.0.7204.23"
},
"chromium-headless-shell": {
"revision": "1169",
"browserVersion": "136.0.7103.25"
"revision": "1179",
"browserVersion": "138.0.7204.23"
},
"firefox": {
"revision": "1482",
"browserVersion": "137.0"
"revision": "1488",
"browserVersion": "139.0"
},
"webkit": {
"revision": "2158",
"revision": "2182",
"revisionOverrides": {
"debian11-x64": "2105",
"debian11-arm64": "2105",
@@ -29,7 +29,7 @@
"ubuntu20.04-x64": "2092",
"ubuntu20.04-arm64": "2092"
},
"browserVersion": "18.4"
"browserVersion": "18.5"
},
"ffmpeg": {
"revision": "1011",
@@ -30,8 +30,8 @@ let
stripRoot = false;
hash =
{
x86_64-linux = "sha256-WCn3j9JnKqGJoQ4X2FWdghha/AxusqCYTCL0sEpA2pM=";
aarch64-linux = "sha256-IIz4E4ylXU5e4XAyqOI6yXc680Lb5bFze0VRuB8Wwck=";
x86_64-linux = "sha256-C545VC0RxFYfKf8XArfVoI2yzrGyfR7vxjryJHfcfBQ=";
aarch64-linux = "sha256-i+HVf/6Qz2nCLLzPxbRYVFjDDOhd5ETYuHje5YsmsAo=";
}
.${system} or throwSystem;
};
@@ -66,8 +66,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-346DDhORd+wGchEpU3Tf3DSwlo8fejomgSUqmF/HmA4=";
aarch64-darwin = "sha256-3WMfwOVlap5HxLzalg8+TTlsyda/HPabJMM0T31UKlE=";
x86_64-darwin = "sha256-2pe1LS3WXRG/V2k/BNN1MmOOdGoA0WCFhUpZW8TUhic=";
aarch64-darwin = "sha256-U07QnHFPQXyO3VGWfZvcP8cJEmVJAJ7imj+6DQlN9vQ=";
}
.${system} or throwSystem;
};
+2 -2
View File
@@ -109,8 +109,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-IJxCYtHTOtBxQdGbiLz+PODQL4rmBn4WXNJ3QNr0D/I=";
aarch64-darwin = "sha256-6QP1OY1krhcfMf5rNzbd55W/Wg02LnbqaU7aKWhJ7qM=";
x86_64-darwin = "sha256-KOoCbygsZZzGNKD8ICcGg0iM2h0HVgXq0I4JMPaUJR8=";
aarch64-darwin = "sha256-2naFzKWmo6el+AqljzILO+hUq/E2g81Dt1fwq79EYO8=";
}
.${system} or throwSystem;
};
+6 -8
View File
@@ -27,13 +27,13 @@ let
}
.${system} or throwSystem;
version = "1.52.0";
version = "1.53.1";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "playwright";
rev = "v${version}";
hash = "sha256-+2ih1tZHqbNtyabtYi1Sd3f9Qs3Is8zUMNBt6Lo2IKs=";
hash = "sha256-N5BS8zpoQGUf5gly0fyutaK76CAhbwOGAUofGnfkmnM=";
};
babel-bundle = buildNpmPackage {
@@ -60,7 +60,7 @@ let
pname = "utils-bundle";
inherit version src;
sourceRoot = "${src.name}/packages/playwright/bundles/utils";
npmDepsHash = "sha256-tyk9bv1ethQSm8PKDpLthwsmqJugLIpsUOf9G8TOKRc=";
npmDepsHash = "sha256-InwWYRk6eRF62qI6qpVaPceIetSr3kPIBK4LdfeoJdo=";
dontNpmBuild = true;
installPhase = ''
cp -r . "$out"
@@ -80,7 +80,7 @@ let
pname = "zip-bundle";
inherit version src;
sourceRoot = "${src.name}/packages/playwright-core/bundles/zip";
npmDepsHash = "sha256-62Apz8uX6d4HKDqQxR6w5Vs31tl63McWGPwT6s2YsBE=";
npmDepsHash = "sha256-c0UZ0Jg86icwJp3xarpXpxWjRYeIjz9wpWtJZDHkd8U=";
dontNpmBuild = true;
installPhase = ''
cp -r . "$out"
@@ -92,7 +92,7 @@ let
inherit version src;
sourceRoot = "${src.name}"; # update.sh depends on sourceRoot presence
npmDepsHash = "sha256-Os/HvvL+CFFb2sM+EDdxF2hN28Sg7oy3vBBfkIipkqs=";
npmDepsHash = "sha256-a1s1l8PG0ViVqYOksB2dkID/AHczMjLNQJW88+yB0B0=";
nativeBuildInputs = [
cacert
@@ -103,10 +103,8 @@ let
postPatch = ''
sed -i '/\/\/ Update test runner./,/^\s*$/{d}' utils/build/build.js
sed -i '/\/\/ Update bundles./,/^\s*$/{d}' utils/build/build.js
sed -i '/^\/\/ Update bundles\./,/^[[:space:]]*}$/d' utils/build/build.js
sed -i '/execSync/d' ./utils/generate_third_party_notice.js
sed -i '/plugins: /d' ./packages/playwright/bundles/utils/build.js
sed -i '/plugins: /d' ./packages/playwright-core/bundles/zip/build.js
chmod +w packages/playwright/bundles/babel
ln -s ${babel-bundle}/node_modules packages/playwright/bundles/babel/node_modules
chmod +w packages/playwright/bundles/expect
+4 -4
View File
@@ -17,8 +17,8 @@ let
}.zip";
hash =
{
x86_64-linux = "sha256-tZ5rDLVzNaGILydgGbSOjtgfoRx0DWesZMmW0X8Pphc=";
aarch64-linux = "sha256-2NOK02C2APHVh4gVrQygrazGUJzJXH/3uOYDoyIn7fU=";
x86_64-linux = "sha256-L9bIldFCqZ/jnNKkJk6nS0HNaJefzTMQIJ6VLUE9ugc=";
aarch64-linux = "sha256-iuiS59f8j3K+grBU7ZtZPfU4r2Dp7s0JJHf2n/4r30U=";
}
.${system} or throwSystem;
};
@@ -41,8 +41,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-2j59mGvDiHMwmUQQFRVhToCooBdIGkF5s9iuXrVenHU=";
aarch64-darwin = "sha256-L7ffypyrX8qSCXksNxnihEZaV+wChoggGIcCuqosXzA=";
x86_64-darwin = "sha256-K0eW1kC1tckJu0crD89hDhK8PHyQUB0YUYN9DdX0HKw=";
aarch64-darwin = "sha256-n1Uy59r6wxmung8QKvw3JeyF3ec/avCVp9fI+bck/iA=";
}
.${system} or throwSystem;
};
+4 -4
View File
@@ -126,8 +126,8 @@ let
stripRoot = false;
hash =
{
x86_64-linux = "sha256-kGTfPFosn8BsBDo9boJWgkPtdAig8+Ffv3Q4eYPy5ls=";
aarch64-linux = "sha256-9NFR3j8M9i3Gk/LCwK+LRpKzJsTt3w2VHGmsGtsoKJU=";
x86_64-linux = "sha256-lwH783B3/laqw0IdGBnVzvySRoF0AwZsSolaqUKmsM4=";
aarch64-linux = "sha256-qtvP0bc5rcZcz6SqigfdrjhTWEmvT4k11I1GW1Eoj/Q=";
}
.${system} or throwSystem;
};
@@ -207,8 +207,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-yvIscuu+37eFH/lEhTPostoJ5kHmpdkZiRBtKWDlOuw=";
aarch64-darwin = "sha256-VtOmp/YJ8oRBZvDg4sNskY7TVQdHglwkAveybY7QYno=";
x86_64-darwin = "sha256-p1+Pk+Zhf2OPEmEWCEd0tA7CdoMcOgYp69SnQXufFJ0=";
aarch64-darwin = "sha256-tEfKvJuGe4htZLSOn94eKeBtWXYkjl73iJSY4BWJMKo=";
}
.${system} or throwSystem;
};