diff options
Diffstat (limited to 'pkgs/development/python-modules/playwright/default.nix')
-rw-r--r-- | pkgs/development/python-modules/playwright/default.nix | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/playwright/default.nix b/pkgs/development/python-modules/playwright/default.nix index ff22cdf0cb8d8..cdbe9b143c2d2 100644 --- a/pkgs/development/python-modules/playwright/default.nix +++ b/pkgs/development/python-modules/playwright/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, auditwheel -, buildPythonPackage -, git -, greenlet -, fetchFromGitHub -, pyee -, python -, pythonOlder -, setuptools -, setuptools-scm -, playwright-driver -, pythonRelaxDepsHook +{ + lib, + stdenv, + auditwheel, + buildPythonPackage, + git, + greenlet, + fetchFromGitHub, + pyee, + python, + pythonOlder, + setuptools, + setuptools-scm, + playwright-driver, + pythonRelaxDepsHook, }: let @@ -51,7 +52,7 @@ buildPythonPackage rec { substituteInPlace setup.py \ --replace "setuptools-scm==8.0.4" "setuptools-scm" \ - --replace "wheel==0.41.2" "wheel" + --replace-fail "wheel==0.42.0" "wheel" substituteInPlace pyproject.toml \ --replace 'requires = ["setuptools==68.2.2", "setuptools-scm==8.0.4", "wheel==0.42.0", "auditwheel==5.4.0"]' \ @@ -67,7 +68,6 @@ buildPythonPackage rec { --replace "@driver@" "${driver}/bin/playwright" ''; - nativeBuildInputs = [ git setuptools-scm @@ -75,9 +75,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ] ++ lib.optionals stdenv.isLinux [ auditwheel ]; - pythonRelaxDeps = [ - "pyee" - ]; + pythonRelaxDeps = [ "pyee" ]; propagatedBuildInputs = [ greenlet @@ -91,9 +89,7 @@ buildPythonPackage rec { # Skip tests because they require network access. doCheck = false; - pythonImportsCheck = [ - "playwright" - ]; + pythonImportsCheck = [ "playwright" ]; passthru = { inherit driver; @@ -109,7 +105,15 @@ buildPythonPackage rec { mainProgram = "playwright"; homepage = "https://github.com/microsoft/playwright-python"; license = licenses.asl20; - maintainers = with maintainers; [ techknowlogick yrd ]; - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + maintainers = with maintainers; [ + techknowlogick + yrd + ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; }; } |