playwright: 1.32.1 -> 1.34.3

+38 -29
+3 -2
pkgs/development/python-modules/playwright/default.nix
··· 15 15 in 16 16 buildPythonPackage rec { 17 17 pname = "playwright"; 18 - version = "1.32.1"; 18 + # run ./pkgs/development/python-modules/playwright/update.sh to update 19 + version = "1.34.0"; 19 20 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 21 22 ··· 23 24 owner = "microsoft"; 24 25 repo = "playwright-python"; 25 26 rev = "v${version}"; 26 - hash = "sha256-rguobFaepTOL2duHRdFV5o2JSsBlYiA7rY3/RyHvoMc="; 27 + hash = "sha256-GIxMVuSSJsRDsHDOPnJsDsTcghGYtIFpRS5u7HJd+zY="; 27 28 }; 28 29 29 30 patches = [
+8 -4
pkgs/development/python-modules/playwright/update.sh
··· 1 1 #!/usr/bin/env nix-shell 2 - #!nix-shell -i bash -p curl gnused nix-prefetch common-updater-scripts 2 + #!nix-shell -i bash -p curl gnused nix-prefetch common-updater-scripts node2nix 3 3 set -euo pipefail 4 4 5 5 root="$(dirname "$(readlink -f "$0")")" 6 + driver_file="$root/../../web/playwright/driver.nix" 7 + playwright_test="$root/../../web/playwright-test" 6 8 7 9 version=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s https://api.github.com/repos/microsoft/playwright-python/releases/latest | jq -r '.tag_name | sub("^v"; "")') 8 10 ··· 13 15 driver_version=$(curl -Ls "$setup_py_url" | grep '^driver_version =' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+') 14 16 15 17 fetch_driver_arch() { 16 - nix-prefetch-url "https://playwright.azureedge.net/builds/driver/playwright-${version}-${1}.zip" 18 + nix-prefetch-url "https://playwright.azureedge.net/builds/driver/playwright-${driver_version}-${1}.zip" 17 19 } 18 20 19 21 replace_sha() { 20 - sed -i "s|$1 = \".\{44,52\}\"|$1 = \"$2\"|" "$root/default.nix" 22 + sed -i "s|$1 = \".\{44,52\}\"|$1 = \"$2\"|" "$driver_file" 21 23 } 22 24 23 25 # Replace SHAs for the driver downloads ··· 27 29 replace_sha "aarch64-darwin" "$(fetch_driver_arch "mac-arm64")" 28 30 29 31 # Update the version stamps 30 - sed -i "s/driverVersion = \"[^\$]*\"/driverVersion = \"$driver_version\"/" "$root/default.nix" 32 + sed -i "s/version =\s*\"[^\$]*\"/version = \"$driver_version\"/" "$driver_file" 33 + sed -i "s/\"@playwright\/test\": \"[^\$]*\"/\"@playwright\/test\": \"$driver_version\"/" "$playwright_test/node-packages.json" 34 + (cd "$playwright_test"; node2nix -i node-packages.json) 31 35 update-source-version playwright "$version" --rev="v$version"
+1 -1
pkgs/development/web/playwright-test/default.nix
··· 2 2 3 3 {pkgs ? import <nixpkgs> { 4 4 inherit system; 5 - }, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}: 5 + }, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}: 6 6 7 7 let 8 8 nodeEnv = import ./node-env.nix {
+5 -2
pkgs/development/web/playwright-test/node-env.nix
··· 530 530 then 531 531 ln -s $out/lib/node_modules/.bin $out/bin 532 532 533 - # Patch the shebang lines of all the executables 533 + # Fixup all executables 534 534 ls $out/bin/* | while read i 535 535 do 536 536 file="$(readlink -f "$i")" 537 537 chmod u+rwx "$file" 538 - patchShebangs "$file" 538 + if isScript "$file" 539 + then 540 + sed -i 's/\r$//' "$file" # convert crlf to lf 541 + fi 539 542 done 540 543 fi 541 544
+1 -1
pkgs/development/web/playwright-test/node-packages.json
··· 1 1 [ 2 - {"@playwright/test": "1.31.1"} 2 + {"@playwright/test": "1.34.3"} 3 3 ]
+14 -14
pkgs/development/web/playwright-test/node-packages.nix
··· 4 4 5 5 let 6 6 sources = { 7 - "@types/node-18.15.11" = { 7 + "@types/node-20.2.5" = { 8 8 name = "_at_types_slash_node"; 9 9 packageName = "@types/node"; 10 - version = "18.15.11"; 10 + version = "20.2.5"; 11 11 src = fetchurl { 12 - url = "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz"; 13 - sha512 = "E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q=="; 12 + url = "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz"; 13 + sha512 = "JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ=="; 14 14 }; 15 15 }; 16 16 "fsevents-2.3.2" = { ··· 22 22 sha512 = "xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="; 23 23 }; 24 24 }; 25 - "playwright-core-1.31.1" = { 25 + "playwright-core-1.34.3" = { 26 26 name = "playwright-core"; 27 27 packageName = "playwright-core"; 28 - version = "1.31.1"; 28 + version = "1.34.3"; 29 29 src = fetchurl { 30 - url = "https://registry.npmjs.org/playwright-core/-/playwright-core-1.31.1.tgz"; 31 - sha512 = "JTyX4kV3/LXsvpHkLzL2I36aCdml4zeE35x+G5aPc4bkLsiRiQshU5lWeVpHFAuC8xAcbI6FDcw/8z3q2xtJSQ=="; 30 + url = "https://registry.npmjs.org/playwright-core/-/playwright-core-1.34.3.tgz"; 31 + sha512 = "2pWd6G7OHKemc5x1r1rp8aQcpvDh7goMBZlJv6Co5vCNLVcQJdhxRL09SGaY6HcyHH9aT4tiynZabMofVasBYw=="; 32 32 }; 33 33 }; 34 34 }; 35 35 in 36 36 { 37 - "@playwright/test-1.31.1" = nodeEnv.buildNodePackage { 37 + "@playwright/test-1.34.3" = nodeEnv.buildNodePackage { 38 38 name = "_at_playwright_slash_test"; 39 39 packageName = "@playwright/test"; 40 - version = "1.31.1"; 40 + version = "1.34.3"; 41 41 src = fetchurl { 42 - url = "https://registry.npmjs.org/@playwright/test/-/test-1.31.1.tgz"; 43 - sha512 = "IsytVZ+0QLDh1Hj83XatGp/GsI1CDJWbyDaBGbainsh0p2zC7F4toUocqowmjS6sQff2NGT3D9WbDj/3K2CJiA=="; 42 + url = "https://registry.npmjs.org/@playwright/test/-/test-1.34.3.tgz"; 43 + sha512 = "zPLef6w9P6T/iT6XDYG3mvGOqOyb6eHaV9XtkunYs0+OzxBtrPAAaHotc0X+PJ00WPPnLfFBTl7mf45Mn8DBmw=="; 44 44 }; 45 45 dependencies = [ 46 - sources."@types/node-18.15.11" 46 + sources."@types/node-20.2.5" 47 47 sources."fsevents-2.3.2" 48 - sources."playwright-core-1.31.1" 48 + sources."playwright-core-1.34.3" 49 49 ]; 50 50 buildInputs = globalBuildInputs; 51 51 meta = {
+6 -5
pkgs/development/web/playwright/driver.nix
··· 29 29 in 30 30 { 31 31 pname = "playwright-driver"; 32 - version = "1.31.1"; 32 + # run ./pkgs/development/python-modules/playwright/update.sh to update 33 + version = "1.34.3"; 33 34 34 35 src = fetchurl { 35 36 url = "https://playwright.azureedge.net/builds/driver/${filename}"; 36 37 sha256 = { 37 - x86_64-linux = "1wg49kfs8fflmx8g01bkckbjkghhwy7c44akckjf7dp4lbh1z8fd"; 38 - aarch64-linux = "0f09a0cxqxihy8lmbjzii80jkpf3n5xlvhjpgdkwmrr3wh0nnixj"; 39 - x86_64-darwin = "1zd0dz8jazymcpa1im5yzxb7rwl6wn4xz19lpz83bnpd1njq01b3"; 40 - aarch64-darwin = "0hcn80zm9aki8hzsf1cljzcmi4iaw7fascs8ajj0qcwqkkm4jnw0"; 38 + x86_64-linux = "1xh05v3yqa8gkwayhl4nffgjcnlakpyyi17hwzh0wqzrbwwn0cs8"; 39 + aarch64-linux = "18jxbmhiqda5pzrv6b3n7xi14xg4zvlh6sn7hc3b3hckl77vl933"; 40 + x86_64-darwin = "0fy5nxbvp1kxplavj832gxiznjqpvl0ww869hsfj0h1fibhly7cy"; 41 + aarch64-darwin = "11msl4pnmr8cmlw32xq2qvfz3g3fy0azvq134a47c0fnpj2gd5zl"; 41 42 }.${system} or throwSystem; 42 43 }; 43 44