{selenium-manager,python3Packages.selenium}: 4.22.0 -> 4.24.0 (#332066)

This commit is contained in:
Weijia Wang 2024-09-13 01:46:27 +02:00 committed by GitHub
commit c65cdc288d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 44 additions and 5 deletions

View File

@ -7,18 +7,18 @@
rustPlatform.buildRustPackage rec {
pname = "selenium-manager";
version = "4.22.0";
version = "4.24.0";
src = fetchFromGitHub {
owner = "SeleniumHQ";
repo = "selenium";
rev = "selenium-${version}";
hash = "sha256-qBuZgI5SSBwxbSBrAT0W/HzzV2JmPL00hPJ6s57QTeg=";
hash = "sha256-AsQr9kGv2dxkiFzptDA0D27OXZjYj7oDKz2oEQ2qW7s=";
};
sourceRoot = "${src.name}/rust";
cargoHash = "sha256-1CPUOAfBfUeZt5S8t5SM3oyrNwXKHplhHG5idVy4YrE=";
cargoHash = "sha256-mirEeOi6CfKjb8ZuqardJeYy9EGnpsw5fkUw7umhkro=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration

View File

@ -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
'';

View File

@ -0,0 +1,37 @@
From e52d75248a5d18bcf965591eb240a11a23147634 Mon Sep 17 00:00:00 2001
From: Pavel Sobolev <contact@paveloom.dev>
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