playwright: 1.38.0 -> 1.40.0
This commit is contained in:
parent
102c2a845b
commit
207d3c4081
4 changed files with 33 additions and 38 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, auditwheel
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, git
|
, git
|
||||||
, greenlet
|
, greenlet
|
||||||
|
@ -6,6 +7,7 @@
|
||||||
, pyee
|
, pyee
|
||||||
, python
|
, python
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, playwright-driver
|
, playwright-driver
|
||||||
}:
|
}:
|
||||||
|
@ -16,15 +18,15 @@ in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "playwright";
|
pname = "playwright";
|
||||||
# run ./pkgs/development/python-modules/playwright/update.sh to update
|
# run ./pkgs/development/python-modules/playwright/update.sh to update
|
||||||
version = "1.38.0";
|
version = "1.40.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "microsoft";
|
owner = "microsoft";
|
||||||
repo = "playwright-python";
|
repo = "playwright-python";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-K3ZLDnDtV9PWX0etVv6RIDHp0vZZ7b7DGJ1GjP2kfXU=";
|
hash = "sha256-+gq/aFq/rQpl04LbaZXGxL35iIX1Wi/motYg5jwv91I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -46,10 +48,13 @@ buildPythonPackage rec {
|
||||||
git commit -m "workaround setuptools-scm"
|
git commit -m "workaround setuptools-scm"
|
||||||
|
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "greenlet==2.0.1" "greenlet>=2.0.1" \
|
--replace "setuptools-scm==8.0.4" "setuptools-scm" \
|
||||||
--replace "pyee==8.1.0" "pyee>=8.1.0" \
|
--replace "wheel==0.41.2" "wheel"
|
||||||
--replace "setuptools-scm==7.0.5" "setuptools-scm>=7.0.5" \
|
|
||||||
--replace "wheel==0.38.1" "wheel>=0.37.1"
|
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"' ""
|
||||||
|
|
||||||
# Skip trying to download and extract the driver.
|
# Skip trying to download and extract the driver.
|
||||||
# This is done manually in postInstall instead.
|
# This is done manually in postInstall instead.
|
||||||
|
@ -62,7 +67,7 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = [ git setuptools-scm ];
|
nativeBuildInputs = [ git setuptools-scm setuptools auditwheel ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
greenlet
|
greenlet
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[
|
[
|
||||||
{"@playwright/test": "1.38.0"}
|
{"@playwright/test": "1.40.0"}
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,48 +4,38 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
sources = {
|
sources = {
|
||||||
"fsevents-2.3.2" = {
|
"playwright-1.40.0" = {
|
||||||
name = "fsevents";
|
|
||||||
packageName = "fsevents";
|
|
||||||
version = "2.3.2";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz";
|
|
||||||
sha512 = "xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"playwright-1.38.0" = {
|
|
||||||
name = "playwright";
|
name = "playwright";
|
||||||
packageName = "playwright";
|
packageName = "playwright";
|
||||||
version = "1.38.0";
|
version = "1.40.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/playwright/-/playwright-1.38.0.tgz";
|
url = "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz";
|
||||||
sha512 = "fJGw+HO0YY+fU/F1N57DMO+TmXHTrmr905J05zwAQE9xkuwP/QLDk63rVhmyxh03dYnEhnRbsdbH9B0UVVRB3A==";
|
sha512 = "gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"playwright-core-1.38.0" = {
|
"playwright-core-1.40.0" = {
|
||||||
name = "playwright-core";
|
name = "playwright-core";
|
||||||
packageName = "playwright-core";
|
packageName = "playwright-core";
|
||||||
version = "1.38.0";
|
version = "1.40.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/playwright-core/-/playwright-core-1.38.0.tgz";
|
url = "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.0.tgz";
|
||||||
sha512 = "f8z1y8J9zvmHoEhKgspmCvOExF2XdcxMW8jNRuX4vkQFrzV4MlZ55iwb5QeyiFQgOFCUolXiRHgpjSEnqvO48g==";
|
sha512 = "fvKewVJpGeca8t0ipM56jkVSU6Eo0RmFvQ/MaCQNDYm+sdvKkMBBWTE1FdeMqIdumRaXXjZChWHvIzCGM/tA/Q==";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"@playwright/test-1.38.0" = nodeEnv.buildNodePackage {
|
"@playwright/test-1.40.0" = nodeEnv.buildNodePackage {
|
||||||
name = "_at_playwright_slash_test";
|
name = "_at_playwright_slash_test";
|
||||||
packageName = "@playwright/test";
|
packageName = "@playwright/test";
|
||||||
version = "1.38.0";
|
version = "1.40.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://registry.npmjs.org/@playwright/test/-/test-1.38.0.tgz";
|
url = "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz";
|
||||||
sha512 = "xis/RXXsLxwThKnlIXouxmIvvT3zvQj1JE39GsNieMUrMpb3/GySHDh2j8itCG22qKVD4MYLBp7xB73cUW/UUw==";
|
sha512 = "PdW+kn4eV99iP5gxWNSDQCbhMaDVej+RXL5xr6t04nbKLCBwYtA046t7ofoczHOm8u6c+45hpDKQVZqtqwkeQg==";
|
||||||
};
|
};
|
||||||
dependencies = [
|
dependencies = [
|
||||||
sources."fsevents-2.3.2"
|
sources."playwright-1.40.0"
|
||||||
sources."playwright-1.38.0"
|
sources."playwright-core-1.40.0"
|
||||||
sources."playwright-core-1.38.0"
|
|
||||||
];
|
];
|
||||||
buildInputs = globalBuildInputs;
|
buildInputs = globalBuildInputs;
|
||||||
meta = {
|
meta = {
|
||||||
|
|
|
@ -30,15 +30,15 @@ let
|
||||||
{
|
{
|
||||||
pname = "playwright-driver";
|
pname = "playwright-driver";
|
||||||
# run ./pkgs/development/python-modules/playwright/update.sh to update
|
# run ./pkgs/development/python-modules/playwright/update.sh to update
|
||||||
version = "1.38.0";
|
version = "1.40.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://playwright.azureedge.net/builds/driver/${filename}";
|
url = "https://playwright.azureedge.net/builds/driver/${filename}";
|
||||||
sha256 = {
|
sha256 = {
|
||||||
x86_64-linux = "1zs8mfn41k5kv1r6vw8x3hw7z7ghmwfrvdhx9lvcllhrdiqzqkbm";
|
x86_64-linux = "0y9n23r4yfcgm4a50rfgicl91vrllak0d8h26yagh6h8hl0r3nhh";
|
||||||
aarch64-linux = "0m2mnvhfqyqjwmb0jdmwdsw0xacr85g5wy0dipl0i8ylb9zjzq7z";
|
aarch64-linux = "0zd456klidi4sg7wahfrdbs2bwiq3q6ngxd4iv3vi9f9w9nq2p2k";
|
||||||
x86_64-darwin = "0jik9d80ina2439nmnd4frmmcjimyqr888gwrm6i136hla27i3a9";
|
x86_64-darwin = "0yaiwg9821w9nszzkrp5skzf5792nahvfqnr4axk84dcngslxvmk";
|
||||||
aarch64-darwin = "1ma2f51hz5xjp55yn9x1s4qg62df12lrr4dy4kdqc6wiqdxc96f3";
|
aarch64-darwin = "1b1jmv6l97ss8c4sc3n1xckn05fpq3fihjbjxr2qz6i9dsy3xj57";
|
||||||
}.${system} or throwSystem;
|
}.${system} or throwSystem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue