From f9c61918596e60ad1ab9f6d625c47543039bc527 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Sat, 3 Aug 2024 22:42:00 +0300 Subject: [PATCH] python3Packages.selenium: 4.22.0 -> 4.24.0 --- .../python-modules/selenium/default.nix | 6 ++- .../dont-build-the-selenium-manager.patch | 37 +++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/selenium/dont-build-the-selenium-manager.patch diff --git a/pkgs/development/python-modules/selenium/default.nix b/pkgs/development/python-modules/selenium/default.nix index 9009d6bf3c4fe..6e4f62039c1af 100644 --- a/pkgs/development/python-modules/selenium/default.nix +++ b/pkgs/development/python-modules/selenium/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "selenium"; - version = "4.22.0"; + version = "4.24.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -29,9 +29,11 @@ buildPythonPackage rec { repo = "selenium"; # check if there is a newer tag with or without -python suffix rev = "refs/tags/selenium-${version}"; - hash = "sha256-qBuZgI5SSBwxbSBrAT0W/HzzV2JmPL00hPJ6s57QTeg="; + hash = "sha256-AsQr9kGv2dxkiFzptDA0D27OXZjYj7oDKz2oEQ2qW7s="; }; + patches = [ ./dont-build-the-selenium-manager.patch ]; + preConfigure = '' cd py ''; diff --git a/pkgs/development/python-modules/selenium/dont-build-the-selenium-manager.patch b/pkgs/development/python-modules/selenium/dont-build-the-selenium-manager.patch new file mode 100644 index 0000000000000..51db7aaf0e195 --- /dev/null +++ b/pkgs/development/python-modules/selenium/dont-build-the-selenium-manager.patch @@ -0,0 +1,37 @@ +From e52d75248a5d18bcf965591eb240a11a23147634 Mon Sep 17 00:00:00 2001 +From: Pavel Sobolev +Date: Sat, 3 Aug 2024 22:38:49 +0300 +Subject: [PATCH] Don't build the Selenium Manager. + +--- + py/setup.py | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/py/setup.py b/py/setup.py +index a71007f..fdda74e 100755 +--- a/py/setup.py ++++ b/py/setup.py +@@ -19,7 +19,6 @@ from distutils.command.install import INSTALL_SCHEMES + from os.path import dirname, join, abspath + from setuptools import setup + from setuptools.command.install import install +-from setuptools_rust import Binding, RustExtension + + + for scheme in INSTALL_SCHEMES.values(): +@@ -84,12 +83,6 @@ setup_args = { + "typing_extensions~=4.9", + "websocket-client~=1.8", + ], +- 'rust_extensions': [ +- RustExtension( +- {"selenium-manager": "selenium.webdriver.common.selenium-manager"}, +- binding=Binding.Exec +- ) +- ], + 'zip_safe': False + } + +-- +2.45.2 +