summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-23 15:53:51 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-23 16:24:26 +0100
commit92bc386eda7637b52ae9639672be11676f2e2b64 (patch)
tree8e999326860ef6126a4b6366127b8b61bf8f8de8 /gnu/packages/python-web.scm
parent0aeeba456fcee28bcac0ede66c52f5cec3c9156e (diff)
gnu: python-selenium: Update to 4.28.1.
* gnu/packages/python-web.scm (python-selenium): Update to 4.28.1. [source]: Switch to git-fetch. [arguments]<#:test-flags>: Disable failing tests. <#:phases>: Add phase 'chdir. [propagated-inputs]: Add python-certifi, python-trio, python-trio-websocket, python-typing-extensions, python-websocket-client. [native-inputs]: Add python-filetype, python-pytest, python-pytest-mock, python-pytest-trio, python-setuptools-rust. Change-Id: Id0e4c222e19d0406d4173bef91561d8bcf8332c6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm46
1 files changed, 37 insertions, 9 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b7ab76293f..ffebc89dd8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8635,19 +8635,47 @@ it provides an elegant coroutine-based API.")
(define-public python-selenium
(package
(name "python-selenium")
- (version "3.141.0")
+ (version "4.28.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "selenium" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/SeleniumHQ/selenium")
+ (commit (string-append "selenium-" version "-python"))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
+ (base32 "1q52qdd33wadxa8ir34kl5nxlrgjbqqk2yx2m1v5xxjf0agazjfl"))))
+ (arguments
+ (list
+ ;; XXX: Disable failing tests.
+ #:test-flags
+ #~(list "--ignore-glob=test/selenium/webdriver/*"
+ ;; Probably requires those.
+ "--ignore-glob=test/unit/selenium/webdriver/chrome/*"
+ "--ignore-glob=test/unit/selenium/webdriver/firefox/*"
+ ;; XXX: SSL certificates access.
+ "--ignore=test/unit/selenium/webdriver/remote/remote_connection_tests.py"
+ "-k" "not test_missing_cdp_devtools_version_falls_back")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "py"))))))
(build-system pyproject-build-system)
- (propagated-inputs (list python-urllib3))
- (native-inputs (list python-setuptools python-wheel))
- (home-page
- "https://github.com/SeleniumHQ/selenium/")
+ (propagated-inputs (list python-certifi
+ python-trio
+ python-trio-websocket
+ python-typing-extensions
+ python-urllib3
+ python-websocket-client))
+ (native-inputs (list python-filetype
+ python-pytest
+ python-pytest-mock
+ python-pytest-trio
+ python-setuptools
+ python-setuptools-rust
+ python-wheel))
+ (home-page "https://www.selenium.dev")
(synopsis "Python bindings for Selenium")
(description "Selenium enables web browser automation.
Selenium specifically provides infrastructure for the W3C WebDriver specification