Skip to content

Commit

Permalink
python3Packages.selenium: 4.22.0 -> 4.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Aug 30, 2024
1 parent d4dbbff commit f9c6191
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/selenium/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

buildPythonPackage rec {
pname = "selenium";
version = "4.22.0";
version = "4.24.0";
format = "setuptools";

disabled = pythonOlder "3.7";
Expand All @@ -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
'';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From e52d75248a5d18bcf965591eb240a11a23147634 Mon Sep 17 00:00:00 2001
From: Pavel Sobolev <[email protected]>
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

0 comments on commit f9c6191

Please sign in to comment.