Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playwright: 1.38.0 -> 1.40.0 #269658

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions pkgs/development/python-modules/playwright/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{ lib
, auditwheel
, buildPythonPackage
, git
, greenlet
, fetchFromGitHub
, pyee
, python
, pythonOlder
, setuptools
, setuptools-scm
, playwright-driver
}:
Expand All @@ -16,15 +18,15 @@ in
buildPythonPackage rec {
pname = "playwright";
# run ./pkgs/development/python-modules/playwright/update.sh to update
version = "1.38.0";
format = "setuptools";
version = "1.40.0";
pyproject = true;
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "microsoft";
repo = "playwright-python";
rev = "refs/tags/v${version}";
hash = "sha256-K3ZLDnDtV9PWX0etVv6RIDHp0vZZ7b7DGJ1GjP2kfXU=";
hash = "sha256-+gq/aFq/rQpl04LbaZXGxL35iIX1Wi/motYg5jwv91I=";
};

patches = [
Expand All @@ -46,10 +48,13 @@ buildPythonPackage rec {
git commit -m "workaround setuptools-scm"

substituteInPlace setup.py \
--replace "greenlet==2.0.1" "greenlet>=2.0.1" \
--replace "pyee==8.1.0" "pyee>=8.1.0" \
--replace "setuptools-scm==7.0.5" "setuptools-scm>=7.0.5" \
--replace "wheel==0.38.1" "wheel>=0.37.1"
--replace "setuptools-scm==8.0.4" "setuptools-scm" \
--replace "wheel==0.41.2" "wheel"

substituteInPlace pyproject.toml \
--replace 'requires = ["setuptools==68.2.2", "setuptools-scm==8.0.4", "wheel==0.41.2", "auditwheel==5.4.0"]' \
'requires = ["setuptools", "setuptools-scm", "wheel", "auditwheel"]' \
--replace 'version_file = "playwright/_repo_version.py"' ""
phaer marked this conversation as resolved.
Show resolved Hide resolved

# Skip trying to download and extract the driver.
# This is done manually in postInstall instead.
Expand All @@ -62,7 +67,7 @@ buildPythonPackage rec {
'';


nativeBuildInputs = [ git setuptools-scm ];
nativeBuildInputs = [ git setuptools-scm setuptools auditwheel ];

propagatedBuildInputs = [
greenlet
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/web/playwright-test/node-packages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[
{"@playwright/test": "1.38.0"}
{"@playwright/test": "1.40.0"}
]
38 changes: 14 additions & 24 deletions pkgs/development/web/playwright-test/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pkgs/development/web/playwright/driver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ let
{
pname = "playwright-driver";
# run ./pkgs/development/python-modules/playwright/update.sh to update
version = "1.38.0";
version = "1.40.0";

src = fetchurl {
url = "https://playwright.azureedge.net/builds/driver/${filename}";
sha256 = {
x86_64-linux = "1zs8mfn41k5kv1r6vw8x3hw7z7ghmwfrvdhx9lvcllhrdiqzqkbm";
aarch64-linux = "0m2mnvhfqyqjwmb0jdmwdsw0xacr85g5wy0dipl0i8ylb9zjzq7z";
x86_64-darwin = "0jik9d80ina2439nmnd4frmmcjimyqr888gwrm6i136hla27i3a9";
aarch64-darwin = "1ma2f51hz5xjp55yn9x1s4qg62df12lrr4dy4kdqc6wiqdxc96f3";
x86_64-linux = "0y9n23r4yfcgm4a50rfgicl91vrllak0d8h26yagh6h8hl0r3nhh";
aarch64-linux = "0zd456klidi4sg7wahfrdbs2bwiq3q6ngxd4iv3vi9f9w9nq2p2k";
x86_64-darwin = "0yaiwg9821w9nszzkrp5skzf5792nahvfqnr4axk84dcngslxvmk";
aarch64-darwin = "1b1jmv6l97ss8c4sc3n1xckn05fpq3fihjbjxr2qz6i9dsy3xj57";
}.${system} or throwSystem;
};

Expand Down