[packages/python3-selenium] - don't require obsolete typeshed packages
qboosh
qboosh at pld-linux.org
Tue Jan 27 17:27:42 CET 2026
commit 81f02c3c16b9c1271fb1252f863d3b4fc42e5b69
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jan 27 17:27:53 2026 +0100
- don't require obsolete typeshed packages
python3-selenium.spec | 2 ++
selenium-dependencies.patch | 12 ++++++++++++
2 files changed, 14 insertions(+)
---
diff --git a/python3-selenium.spec b/python3-selenium.spec
index 0098f2e..64c0f27 100644
--- a/python3-selenium.spec
+++ b/python3-selenium.spec
@@ -12,6 +12,7 @@ Source0: https://files.pythonhosted.org/packages/source/s/selenium/%{module}-%{v
# cargo vendor-filterer --platform='*-unknown-linux-*' --tier=2
Source1: selenium-%{version}-vendor.tar.xz
# Source1-md5: 1916109dba2f34659c77808ba4686d81
+Patch0: selenium-dependencies.patch
URL: https://pypi.org/project/selenium/
BuildRequires: python3-modules >= 1:3.10
BuildRequires: python3-setuptools
@@ -44,6 +45,7 @@ poziomu Pythona.
%prep
%setup -q -n %{module}-%{version} -a1
+%patch -P0 -p1
# use our offline registry
export CARGO_HOME="$(pwd)/.cargo"
diff --git a/selenium-dependencies.patch b/selenium-dependencies.patch
new file mode 100644
index 0000000..82b94d5
--- /dev/null
+++ b/selenium-dependencies.patch
@@ -0,0 +1,12 @@
+Required versions of certifi and urllib3 already contain typing, typeshed packages are no longer maintained for them.
+--- selenium-4.40.0/pyproject.toml.orig 2000-01-01 01:00:00.000000000 +0100
++++ selenium-4.40.0/pyproject.toml 2026-01-27 17:15:15.147665095 +0100
+@@ -30,8 +30,6 @@ dependencies = [
+ "trio>=0.31.0,<1.0",
+ "trio-websocket>=0.12.2,<1.0",
+ "trio-typing>=0.10.0",
+- "types-certifi>=2021.10.8.3",
+- "types-urllib3>=1.26.25.14",
+ "typing_extensions>=4.15.0,<5.0",
+ "urllib3[socks]>=2.6.3,<3.0",
+ "websocket-client>=1.8.0,<2.0",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-selenium.git/commitdiff/81f02c3c16b9c1271fb1252f863d3b4fc42e5b69
More information about the pld-cvs-commit
mailing list