mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
playwright: 1.60.0 -> 1.61.1 (#536618)
This commit is contained in:
commit
6d91bcd51e
9 changed files with 37 additions and 33 deletions
|
|
@ -8,6 +8,7 @@
|
|||
}:
|
||||
buildNpmPackage rec {
|
||||
pname = "playwright-mcp";
|
||||
# nixpkgs-update: no auto update
|
||||
version = "0.0.76";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
@ -32,7 +33,8 @@ buildNpmPackage rec {
|
|||
|
||||
wrapProgram $out/bin/playwright-mcp \
|
||||
--set PLAYWRIGHT_BROWSERS_PATH ${playwright-driver.browsers} \
|
||||
--set-default PLAYWRIGHT_MCP_BROWSER chromium
|
||||
--set-default PLAYWRIGHT_MCP_BROWSER chromium \
|
||||
--run 'if [ -z "$PLAYWRIGHT_MCP_USER_DATA_DIR" ]; then export PLAYWRIGHT_MCP_ISOLATED=1; fi'
|
||||
'';
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
|
|
|||
|
|
@ -31,14 +31,14 @@ in
|
|||
buildPythonPackage (finalAttrs: {
|
||||
pname = "playwright";
|
||||
# run ./pkgs/development/web/playwright/update.sh to update
|
||||
version = "1.60.0";
|
||||
version = "1.61.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "microsoft";
|
||||
repo = "playwright-python";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-gbPWUmELw77Fw5M236et2TjkkGisMVVOJzmgq61/bg0=";
|
||||
hash = "sha256-6FIUFDa23q0Ge0G1ZmaYDitVYzZzOHatQtLRvZ18W0Q=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
|||
|
|
@ -2,22 +2,22 @@
|
|||
"comment": "This file is kept up to date via update.sh",
|
||||
"browsers": {
|
||||
"chromium": {
|
||||
"revision": "1223",
|
||||
"browserVersion": "148.0.7778.96",
|
||||
"revision": "1228",
|
||||
"browserVersion": "149.0.7827.55",
|
||||
"title": "Chrome for Testing"
|
||||
},
|
||||
"chromium-headless-shell": {
|
||||
"revision": "1223",
|
||||
"browserVersion": "148.0.7778.96",
|
||||
"revision": "1228",
|
||||
"browserVersion": "149.0.7827.55",
|
||||
"title": "Chrome Headless Shell"
|
||||
},
|
||||
"firefox": {
|
||||
"revision": "1522",
|
||||
"browserVersion": "150.0.2",
|
||||
"revision": "1532",
|
||||
"browserVersion": "151.0",
|
||||
"title": "Firefox"
|
||||
},
|
||||
"webkit": {
|
||||
"revision": "2287",
|
||||
"revision": "2311",
|
||||
"revisionOverrides": {
|
||||
"mac14": "2251",
|
||||
"mac14-arm64": "2251",
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
"ubuntu20.04-x64": "2092",
|
||||
"ubuntu20.04-arm64": "2092"
|
||||
},
|
||||
"browserVersion": "26.4",
|
||||
"browserVersion": "26.5",
|
||||
"title": "WebKit"
|
||||
},
|
||||
"ffmpeg": {
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-linux = "sha256-Nr0/uczFTBTqvRPR0c/wflIqG5relgKfC9XsMOdE9iE=";
|
||||
aarch64-linux = "sha256-veEBmsivFDrG1bArQ780+gMbsoT1Zv4VLcIPpgn4M/I=";
|
||||
x86_64-linux = "sha256-wnN0SL8QqiFGZdevm06WOhR9o6q34+kHL5ay1mRYnxs=";
|
||||
aarch64-linux = "sha256-d9Qr3q4GjtUp2ZVFSq+M2Ap++WKaEscRzEkk4JwXL/E=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
@ -72,8 +72,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-darwin = "sha256-GEomMUuaIjhBEuWF/HyMohseJtwKOn5MCgh6kIB9ZeE=";
|
||||
aarch64-darwin = "sha256-7laJtPAiy6pYAxCNBxRYk+FmriXemmLW8UYteEdVrd0=";
|
||||
x86_64-darwin = "sha256-eZXicAwu+9OFELVz+O/Lv6jEMTeLY6i+BZhY5RZ0+xA=";
|
||||
aarch64-darwin = "sha256-qWrMOreqTOFhmFBROlXIPXrM3wqNT7iJJwpelVFke6I=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-linux = "sha256-TnplS4C/PPcmyWrMCqWh7c1KrpevHJFKO0gfh46M3tk=";
|
||||
aarch64-linux = "sha256-E7Nmz9fET0kXNf7ooaUBDHtDBWTGq4JDKKUbo/UfA+c=";
|
||||
x86_64-linux = "sha256-/0OwT0Asm4A/rUkFruw1JYWbDInFJPuDX0CEdNjeMLo=";
|
||||
aarch64-linux = "sha256-5vNF1/utXGctixYJj/0qvi6X0qklIG9XCcet94feQoA=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
@ -130,8 +130,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-darwin = "sha256-W6xH9iX81H+o689LZvJZO7tF79V0Gv7AksUwflPuQ8A=";
|
||||
aarch64-darwin = "sha256-T0rVp4M/ymrJtNVtF0RDmIOT6kC3/tRkzPYrwvFbEQY=";
|
||||
x86_64-darwin = "sha256-LGnaeRgWq496mgoosN20ayiGmNyIFHMLM2Jl/lpALMg=";
|
||||
aarch64-darwin = "sha256-aJbvZQ1hY0FfDC+ZktfW2yNW3nwc0kh/P30+n/cmLf0=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,13 +19,13 @@ let
|
|||
throwSystem = throw "Unsupported system: ${system}";
|
||||
browsersJSON = (lib.importJSON ./browsers.json).browsers;
|
||||
|
||||
version = "1.60.0";
|
||||
version = "1.61.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Microsoft";
|
||||
repo = "playwright";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-jtQHyphdZsS8hf7uhe9zrx16Uf+kgLLha6dTCsCTT/8=";
|
||||
hash = "sha256-FC3Sjh4LCTqftudcwt7KO3g3c2uyWv7PixhWqSZZR4Y=";
|
||||
};
|
||||
|
||||
playwright = buildNpmPackage {
|
||||
|
|
@ -33,7 +33,7 @@ let
|
|||
inherit version src;
|
||||
|
||||
sourceRoot = "${src.name}"; # update.sh depends on sourceRoot presence
|
||||
npmDepsHash = "sha256-K1bCDURaq2+kaqGQcOL1tD6tQt/37pyDFWq2njUVNS4=";
|
||||
npmDepsHash = "sha256-DTRhYHRaPlthyRcD2azEIKMPaRwROLuLOdUC27Rk5zM=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cacert
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-linux = "sha256-DXUCNHLzN8rdq/I7JRAHbSPtgK8pJy3sKNEx4xsbd0E=";
|
||||
aarch64-linux = "sha256-Kl7Z9mE+1Vy6VEnnl0DOZY/jtYjhUTwjqfFe9UZu2UA=";
|
||||
x86_64-linux = "sha256-ol9Ai8BpstZdfd6v1NDq66BjLTr/5THya0Fk2z1toJg=";
|
||||
aarch64-linux = "sha256-G0pcHmjRj5GKsDF7iHdQyGsJCiv4gqaFv2PwGa/t8bw=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
@ -42,8 +42,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-darwin = "sha256-eXS88URYKAbFP6/3pukb2qgrdqVBOR99VGyqKPFZ2Tw=";
|
||||
aarch64-darwin = "sha256-lVNFp20v+zBC3Up9ElhWh8C8ptEUqCHEsfQiuPp3lVM=";
|
||||
x86_64-darwin = "sha256-nV+oV7Zp2rAWkMWAs//PnWCA0q2jzS5hjr5AEXuEoos=";
|
||||
aarch64-darwin = "sha256-Opwa5SbuAaXf2A+qrldHc6BkhRaOzzl0dy7R4vodG5w=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ python_version=$(github_api_get https://api.github.com/repos/microsoft/playwrigh
|
|||
# Most of the time, this should be the latest stable release of the Node-based
|
||||
# Playwright version, but upstream occasionally ships additional npm-only patch
|
||||
# releases. Resolve the latest patch in the same major.minor series.
|
||||
setup_py_url="https://github.com/microsoft/playwright-python/raw/v${python_version}/setup.py"
|
||||
python_driver_version=$(curl -fsSL "$setup_py_url" | grep '^driver_version =' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
|
||||
driver_version_url="https://github.com/microsoft/playwright-python/raw/v${python_version}/DRIVER_VERSION"
|
||||
python_driver_version=$(curl -fsSL "$driver_version_url" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
|
||||
python_major_minor=$(major_minor "$python_driver_version")
|
||||
resolve_driver_version_latest_patch() {
|
||||
local mm_escaped
|
||||
|
|
@ -45,7 +45,7 @@ resolve_driver_version_latest_patch() {
|
|||
}
|
||||
driver_version="$(resolve_driver_version_latest_patch)"
|
||||
: "${driver_version:?failed to resolve driver version from npm for python major.minor ${python_major_minor}}"
|
||||
: "${python_driver_version:?failed to resolve driver_version from ${setup_py_url}}"
|
||||
: "${python_driver_version:?failed to resolve driver_version from ${driver_version_url}}"
|
||||
|
||||
# TODO: skip if update-source-version reported the same version
|
||||
update-source-version playwright-driver "$driver_version"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
brotli,
|
||||
at-spi2-atk,
|
||||
cairo,
|
||||
enchant_2,
|
||||
flite,
|
||||
fontconfig,
|
||||
freetype,
|
||||
|
|
@ -121,8 +122,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-linux = "sha256-hefWMElsTGTkPvSnovwR8P0kunnPLUGDR5Hvoa31SMM=";
|
||||
aarch64-linux = "sha256-4leXyoebeqWPHxO9D2MomnVqza/9IEcJEuiRCf3/eUc=";
|
||||
x86_64-linux = "sha256-GASDnneoxfZLUctJLnaUTPW4HDbKdSamJBxFDVpPUC0=";
|
||||
aarch64-linux = "sha256-qtqMCyEZVQu44HGI73t50D1WcnuzxuxLY7MDzf4NDeA=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
@ -135,6 +136,7 @@ let
|
|||
buildInputs = [
|
||||
at-spi2-atk
|
||||
cairo
|
||||
enchant_2
|
||||
flite
|
||||
fontconfig.lib
|
||||
freetype
|
||||
|
|
@ -195,8 +197,8 @@ let
|
|||
inherit (download) url stripRoot;
|
||||
hash =
|
||||
{
|
||||
x86_64-darwin = "sha256-D9iZitRG3lPWQ/Zu/HAjx2gEehr/xr0d+j2jo7yjnoQ=";
|
||||
aarch64-darwin = "sha256-383PHqwW+QoXL4qxXEE3ytbQVQ4rg2YDK+B+XvIfBmY=";
|
||||
x86_64-darwin = "sha256-FFWFWKHroNBeDw4KYDe4UeucaJzMyin0Ca/qxN2iaO0=";
|
||||
aarch64-darwin = "sha256-glVkYnthOFBPp1gZXTue9WwjP+oCgQpq6j9Mlm/bjmg=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue