diff options
Diffstat (limited to 'pkgs/development/python-modules/playwright/default.nix')
-rw-r--r-- | pkgs/development/python-modules/playwright/default.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/playwright/default.nix b/pkgs/development/python-modules/playwright/default.nix index 7751452d5fb8..004930491a39 100644 --- a/pkgs/development/python-modules/playwright/default.nix +++ b/pkgs/development/python-modules/playwright/default.nix @@ -1,4 +1,5 @@ { lib +, auditwheel , buildPythonPackage , git , greenlet @@ -6,6 +7,7 @@ , pyee , python , pythonOlder +, setuptools , setuptools-scm , playwright-driver }: @@ -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 = [ @@ -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"' "" # Skip trying to download and extract the driver. # This is done manually in postInstall instead. @@ -62,7 +67,7 @@ buildPythonPackage rec { ''; - nativeBuildInputs = [ git setuptools-scm ]; + nativeBuildInputs = [ git setuptools-scm setuptools auditwheel ]; propagatedBuildInputs = [ greenlet |