playwright: 1.53.1 -> 1.54.1 (#427631)

This commit is contained in:
Peder Bergebakken Sundt 2025-07-24 19:17:57 +02:00 committed by GitHub
commit 75feaf46c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 55 additions and 35 deletions

View File

@ -8,16 +8,16 @@
buildNpmPackage rec {
pname = "playwright-mcp";
version = "0.0.29";
version = "0.0.31";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "playwright-mcp";
tag = "v${version}";
hash = "sha256-owSoE3+jSg09dFpM5wv7FJovzsX5ZMp/9IIQhkmSZt0=";
hash = "sha256-Hw4OUZCHoquX6Ixv7GlsHcKxqOdJEQYfuDPzqYkVNAk=";
};
npmDepsHash = "sha256-jweIBhlVci8CFBIYlFp0opc1ilWMcHt0is4qgTiYNcQ=";
npmDepsHash = "sha256-70/t/mgSBwMv9C3VusbjIMMyy3e3npxQLXqKbdL9xa4=";
postInstall = ''
rm -r $out/lib/node_modules/@playwright/mcp/node_modules/playwright

View File

@ -22,7 +22,7 @@ in
buildPythonPackage rec {
pname = "playwright";
# run ./pkgs/development/python-modules/playwright/update.sh to update
version = "1.53.0";
version = "1.54.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "microsoft";
repo = "playwright-python";
tag = "v${version}";
hash = "sha256-jFS2Luq/9mRsXZ65H3VLw+sTBplVNVy/yZYrpF5Hc0M=";
hash = "sha256-xyuofDL0hWL8Gn4sYNLKte8q/4bMo+3aSbYaf5iWiBk=";
};
patches = [

View File

@ -22,6 +22,19 @@ repo_url_prefix="https://github.com/microsoft/playwright/raw"
temp_dir=$(mktemp -d)
trap 'rm -rf "$temp_dir"' EXIT
# Update playwright-mcp package
mcp_version=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s https://api.github.com/repos/microsoft/playwright-mcp/releases/latest | jq -r '.tag_name | sub("^v"; "")')
update-source-version playwright-mcp "$mcp_version"
# Update npmDepsHash for playwright-mcp
pushd "$temp_dir" >/dev/null
curl -fsSL -o package-lock.json "https://raw.githubusercontent.com/microsoft/playwright-mcp/v${mcp_version}/package-lock.json"
mcp_npm_hash=$(prefetch-npm-deps package-lock.json)
rm -f package-lock.json
popd >/dev/null
mcp_package_file="$root/../../../by-name/pl/playwright-mcp/package.nix"
sed -E 's#\bnpmDepsHash = ".*?"#npmDepsHash = "'"$mcp_npm_hash"'"#' -i "$mcp_package_file"
# update binaries of browsers, used by playwright.
@ -48,6 +61,9 @@ update_browser() {
else
if [ "$name" = "ffmpeg" ] || [ "$name" = "chromium-headless-shell" ]; then
suffix="linux"
elif [ "$name" = "chromium" ]; then
stripRoot="true"
suffix="linux"
elif [ "$name" = "firefox" ]; then
stripRoot="true"
suffix="ubuntu-22.04"
@ -81,7 +97,7 @@ curl -fsSl \
)
' > "$playwright_dir/browsers.json"
# We currently use Chromium from nixpkgs, so we don't need to download it here
update_browser "chromium" "linux"
update_browser "chromium-headless-shell" "linux"
update_browser "firefox" "linux"
update_browser "webkit" "linux"

View File

@ -2,19 +2,19 @@
"comment": "This file is kept up to date via update.sh",
"browsers": {
"chromium": {
"revision": "1179",
"browserVersion": "138.0.7204.23"
"revision": "1181",
"browserVersion": "139.0.7258.5"
},
"chromium-headless-shell": {
"revision": "1179",
"browserVersion": "138.0.7204.23"
"revision": "1181",
"browserVersion": "139.0.7258.5"
},
"firefox": {
"revision": "1488",
"browserVersion": "139.0"
"revision": "1489",
"browserVersion": "140.0.2"
},
"webkit": {
"revision": "2182",
"revision": "2191",
"revisionOverrides": {
"debian11-x64": "2105",
"debian11-arm64": "2105",
@ -29,7 +29,7 @@
"ubuntu20.04-x64": "2092",
"ubuntu20.04-arm64": "2092"
},
"browserVersion": "18.5"
"browserVersion": "26.0"
},
"ffmpeg": {
"revision": "1011",

View File

@ -30,8 +30,8 @@ let
stripRoot = false;
hash =
{
x86_64-linux = "sha256-C545VC0RxFYfKf8XArfVoI2yzrGyfR7vxjryJHfcfBQ=";
aarch64-linux = "sha256-i+HVf/6Qz2nCLLzPxbRYVFjDDOhd5ETYuHje5YsmsAo=";
x86_64-linux = "sha256-AYh2urKZdjXCELimYaFihWp0FbDLf4uRrKLJZVxug5M=";
aarch64-linux = "sha256-diBiy0z51BxGK0PcfQOf1aryUcZesKu/UHBSZUjqwMk=";
}
.${system} or throwSystem;
};
@ -66,8 +66,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-2pe1LS3WXRG/V2k/BNN1MmOOdGoA0WCFhUpZW8TUhic=";
aarch64-darwin = "sha256-U07QnHFPQXyO3VGWfZvcP8cJEmVJAJ7imj+6DQlN9vQ=";
x86_64-darwin = "sha256-vIJuDjkasUYlMW0aCOyztyrlh5kvcwNR9GBaoa/yh/M=";
aarch64-darwin = "sha256-6Q6nz0H2749srdMF/puk/gnG1gQBEnWe9cQO3owL2OU=";
}
.${system} or throwSystem;
};

View File

@ -41,8 +41,8 @@ let
url = "https://playwright.azureedge.net/builds/chromium/${revision}/chromium-${suffix}.zip";
hash =
{
x86_64-linux = "sha256-7oQQCAIt1VJiMNFEJO40K8oENK/L0BICXm2D/3fZ8bA=";
aarch64-linux = "sha256-1OmByLX2jNHXAzWdXF8Od7S7pj/jl4wwvOQcsZc5R7o=";
x86_64-linux = "sha256-R7nMCVpUqgRwtB0syhfIK81maiTVWr8lYBLp4bR8VBg=";
aarch64-linux = "sha256-4fc4X7QwBigktmEeseuqIyEeV70Dy3eO/femXrftMd0=";
}
.${system} or throwSystem;
};
@ -109,8 +109,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-KOoCbygsZZzGNKD8ICcGg0iM2h0HVgXq0I4JMPaUJR8=";
aarch64-darwin = "sha256-2naFzKWmo6el+AqljzILO+hUq/E2g81Dt1fwq79EYO8=";
x86_64-darwin = "sha256-0u1AStbUTX+qgUmg2DvL59B4b265WywDaBV+MdSuaNE=";
aarch64-darwin = "sha256-4pg4wmNTF8mw+APmdpvYlFxb9zc6OUh11oW5gCRKETY=";
}
.${system} or throwSystem;
};

View File

@ -27,13 +27,13 @@ let
}
.${system} or throwSystem;
version = "1.53.1";
version = "1.54.1";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "playwright";
rev = "v${version}";
hash = "sha256-N5BS8zpoQGUf5gly0fyutaK76CAhbwOGAUofGnfkmnM=";
hash = "sha256-xwyREgelHLkpbUXOZTppKK7L6dE4jx0d/lbDWSKGzTY=";
};
babel-bundle = buildNpmPackage {
@ -70,7 +70,7 @@ let
pname = "utils-bundle-core";
inherit version src;
sourceRoot = "${src.name}/packages/playwright-core/bundles/utils";
npmDepsHash = "sha256-3hdOmvs/IGAgW7vhldms9Q9/ZQfbjbc+xP+JEtGJ7g8=";
npmDepsHash = "sha256-gEm2oTxj4QIiGnIOPffOLh3BYSngpGToF89ObnDYBqs=";
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-a1s1l8PG0ViVqYOksB2dkID/AHczMjLNQJW88+yB0B0=";
npmDepsHash = "sha256-4bsX8Q8V3CBpIsyqMYTzfERQQPY5zlPf7CoqR6UkUHU=";
nativeBuildInputs = [
cacert

View File

@ -17,8 +17,8 @@ let
}.zip";
hash =
{
x86_64-linux = "sha256-L9bIldFCqZ/jnNKkJk6nS0HNaJefzTMQIJ6VLUE9ugc=";
aarch64-linux = "sha256-iuiS59f8j3K+grBU7ZtZPfU4r2Dp7s0JJHf2n/4r30U=";
x86_64-linux = "sha256-j7gOuXMyftNQencgfpk8Y4ED2LuT7TAa30IPyzmir48=";
aarch64-linux = "sha256-deIUGKBrp56TsDr61cbNbRRSRcVpSoa6pdmMk4oB/Eg=";
}
.${system} or throwSystem;
};
@ -41,8 +41,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-K0eW1kC1tckJu0crD89hDhK8PHyQUB0YUYN9DdX0HKw=";
aarch64-darwin = "sha256-n1Uy59r6wxmung8QKvw3JeyF3ec/avCVp9fI+bck/iA=";
x86_64-darwin = "sha256-ljgFoyqCg9kma2cDFodNjbkAeEylIzVdWkS1vU/9Rbg=";
aarch64-darwin = "sha256-W2J5APPWEkmoDgBEox6/ygg2xyWpOHZESXFG0tZbj1M=";
}
.${system} or throwSystem;
};

View File

@ -102,7 +102,11 @@ let
hash = "sha256-X4fbYTMS+kHfZRbeGzSdBW5jQKw8UN44FEyFRUtw0qo=";
})
];
postPatch = "";
postPatch = ''
# Fix multiple definition errors by using C++17 instead of C++11
substituteInPlace CMakeLists.txt \
--replace "set(CMAKE_CXX_STANDARD 11)" "set(CMAKE_CXX_STANDARD 17)"
'';
postInstall = "";
cmakeFlags = [
@ -125,8 +129,8 @@ let
stripRoot = false;
hash =
{
x86_64-linux = "sha256-lwH783B3/laqw0IdGBnVzvySRoF0AwZsSolaqUKmsM4=";
aarch64-linux = "sha256-qtvP0bc5rcZcz6SqigfdrjhTWEmvT4k11I1GW1Eoj/Q=";
x86_64-linux = "sha256-OSVHFGdcQrzmhLPdXF61tKmip/6/D+uaQgSBBQiOIZI=";
aarch64-linux = "sha256-b8XwVMCwSbujyqgkJKIPAVNX83Qmmsthprr2x9XSb10=";
}
.${system} or throwSystem;
};
@ -206,8 +210,8 @@ let
stripRoot = false;
hash =
{
x86_64-darwin = "sha256-p1+Pk+Zhf2OPEmEWCEd0tA7CdoMcOgYp69SnQXufFJ0=";
aarch64-darwin = "sha256-tEfKvJuGe4htZLSOn94eKeBtWXYkjl73iJSY4BWJMKo=";
x86_64-darwin = "sha256-shjhozJS2VbBjpjJVlM9hwBzGWwgva1qhfEUhY8t9Bk=";
aarch64-darwin = "sha256-ZRl86L/OOTNPWfZDl6JQfuXL41kI/Wir99/JIbf7T7M=";
}
.${system} or throwSystem;
};