mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-selenium: build fixes for version 4.28.1
This commit is contained in:
parent
3fbe73b605
commit
c4ab6b709b
3 changed files with 172 additions and 4 deletions
|
@ -7,8 +7,8 @@
|
|||
|
||||
pkgname=python-selenium
|
||||
_pkgname="${pkgname#python-}"
|
||||
pkgver=4.28.0
|
||||
pkgrel=3
|
||||
pkgver=4.28.1
|
||||
pkgrel=0
|
||||
pkgdesc="Python language bindings for Selenium WebDriver"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/SeleniumHQ/selenium"
|
||||
|
@ -34,13 +34,20 @@ makedepends=(
|
|||
python-wheel
|
||||
)
|
||||
options=(!lto)
|
||||
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=('a9fae6eef48d470a1b0c6e45185d96f0dafb025e8da4b346cc41e4da3ac54fa0')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
|
||||
"pyo3.patch"
|
||||
"cargo.patch")
|
||||
sha256sums=('0072d08670d7ec32db901bd0107695a330cecac9f196e3afb3fa8163026e022a'
|
||||
'b9e16158ca6f7fcd97901cf9b3f907c0543c49a4f1441a3013bd3771ec37dcf0'
|
||||
'b18dade8dc66092d050f5e336109f9d3f40f414ba3e4c163ab91ba834123d386')
|
||||
|
||||
_archive="${_pkgname}-${pkgver}"
|
||||
|
||||
prepare() {
|
||||
cd "${_archive}"
|
||||
# fixes for build failures mentioned in upstream repo (https://github.com/SeleniumHQ/selenium/pull/15128#issuecomment-2609736932)
|
||||
patch -p1 < ${srcdir}/pyo3.patch
|
||||
patch -p1 < ${srcdir}/cargo.patch
|
||||
|
||||
# Ensure `selenium.webdriver.common.fedcm` gets packaged
|
||||
touch ./selenium/webdriver/common/fedcm/__init__.py
|
||||
|
|
148
BioArchLinux/python-selenium/cargo.patch
Normal file
148
BioArchLinux/python-selenium/cargo.patch
Normal file
|
@ -0,0 +1,148 @@
|
|||
--- selenium-4.28.1/Cargo.lock 2000-01-01 05:30:00.000000000 +0530
|
||||
+++ selenium-4.28.1.new/Cargo.lock 2025-02-01 20:35:36.236843520 +0530
|
||||
@@ -1178,6 +1178,12 @@
|
||||
]
|
||||
|
||||
[[package]]
|
||||
+name = "indoc"
|
||||
+version = "2.0.5"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
|
||||
+
|
||||
+[[package]]
|
||||
name = "infer"
|
||||
version = "0.8.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -1322,6 +1328,15 @@
|
||||
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||
|
||||
[[package]]
|
||||
+name = "memoffset"
|
||||
+version = "0.9.1"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
||||
+dependencies = [
|
||||
+ "autocfg",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
name = "mime"
|
||||
version = "0.3.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -1438,6 +1453,12 @@
|
||||
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
|
||||
|
||||
[[package]]
|
||||
+name = "portable-atomic"
|
||||
+version = "1.10.0"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6"
|
||||
+
|
||||
+[[package]]
|
||||
name = "powerfmt"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -1486,6 +1507,69 @@
|
||||
]
|
||||
|
||||
[[package]]
|
||||
+name = "pyo3"
|
||||
+version = "0.23.4"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "57fe09249128b3173d092de9523eaa75136bf7ba85e0d69eca241c7939c933cc"
|
||||
+dependencies = [
|
||||
+ "cfg-if",
|
||||
+ "indoc",
|
||||
+ "libc",
|
||||
+ "memoffset",
|
||||
+ "once_cell",
|
||||
+ "portable-atomic",
|
||||
+ "pyo3-build-config",
|
||||
+ "pyo3-ffi",
|
||||
+ "pyo3-macros",
|
||||
+ "unindent",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
+name = "pyo3-build-config"
|
||||
+version = "0.23.4"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "1cd3927b5a78757a0d71aa9dff669f903b1eb64b54142a9bd9f757f8fde65fd7"
|
||||
+dependencies = [
|
||||
+ "once_cell",
|
||||
+ "target-lexicon",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
+name = "pyo3-ffi"
|
||||
+version = "0.23.4"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "dab6bb2102bd8f991e7749f130a70d05dd557613e39ed2deeee8e9ca0c4d548d"
|
||||
+dependencies = [
|
||||
+ "libc",
|
||||
+ "pyo3-build-config",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
+name = "pyo3-macros"
|
||||
+version = "0.23.4"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "91871864b353fd5ffcb3f91f2f703a22a9797c91b9ab497b1acac7b07ae509c7"
|
||||
+dependencies = [
|
||||
+ "proc-macro2",
|
||||
+ "pyo3-macros-backend",
|
||||
+ "quote",
|
||||
+ "syn",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
+name = "pyo3-macros-backend"
|
||||
+version = "0.23.4"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "43abc3b80bc20f3facd86cd3c60beed58c3e2aa26213f3cda368de39c60a27e4"
|
||||
+dependencies = [
|
||||
+ "heck",
|
||||
+ "proc-macro2",
|
||||
+ "pyo3-build-config",
|
||||
+ "quote",
|
||||
+ "syn",
|
||||
+]
|
||||
+
|
||||
+[[package]]
|
||||
name = "quinn"
|
||||
version = "0.11.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -1844,6 +1928,7 @@
|
||||
"infer 0.16.0",
|
||||
"is_executable",
|
||||
"log",
|
||||
+ "pyo3",
|
||||
"regex",
|
||||
"reqwest",
|
||||
"rstest",
|
||||
@@ -2093,6 +2178,12 @@
|
||||
]
|
||||
|
||||
[[package]]
|
||||
+name = "target-lexicon"
|
||||
+version = "0.12.16"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
||||
+
|
||||
+[[package]]
|
||||
name = "tempfile"
|
||||
version = "3.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -2343,6 +2434,12 @@
|
||||
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
||||
|
||||
[[package]]
|
||||
+name = "unindent"
|
||||
+version = "0.2.3"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
|
||||
+
|
||||
+[[package]]
|
||||
name = "untrusted"
|
||||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
13
BioArchLinux/python-selenium/pyo3.patch
Normal file
13
BioArchLinux/python-selenium/pyo3.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- selenium-4.28.1/Cargo.toml 2000-01-01 05:30:00.000000000 +0530
|
||||
+++ selenium-4.28.1.new/Cargo.toml 2025-02-01 20:30:48.975164929 +0530
|
||||
@@ -54,3 +54,10 @@
|
||||
[profile.dev]
|
||||
debug = true # Full debug info
|
||||
split-debuginfo = 'off' # Debug info in the final artifact
|
||||
+
|
||||
+[dependencies.pyo3]
|
||||
+version = "0.23.4"
|
||||
+
|
||||
+[features]
|
||||
+extension-module = ["pyo3/extension-module"]
|
||||
+default = ["extension-module"]
|
Loading…
Add table
Reference in a new issue