playwright: 1.32.1 -> 1.34.3

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