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>
This commit is contained in:
Nicolas Graves 2025-07-23 15:53:51 +02:00 committed by Sharlatan Hellseher
parent 0aeeba456f
commit 92bc386eda
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8635,19 +8635,47 @@ it provides an elegant coroutine-based API.")
(define-public python-selenium (define-public python-selenium
(package (package
(name "python-selenium") (name "python-selenium")
(version "3.141.0") (version "4.28.1")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "selenium" version)) (uri (git-reference
(url "https://github.com/SeleniumHQ/selenium")
(commit (string-append "selenium-" version "-python"))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "1q52qdd33wadxa8ir34kl5nxlrgjbqqk2yx2m1v5xxjf0agazjfl"))))
"039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy")))) (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) (build-system pyproject-build-system)
(propagated-inputs (list python-urllib3)) (propagated-inputs (list python-certifi
(native-inputs (list python-setuptools python-wheel)) python-trio
(home-page python-trio-websocket
"https://github.com/SeleniumHQ/selenium/") 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") (synopsis "Python bindings for Selenium")
(description "Selenium enables web browser automation. (description "Selenium enables web browser automation.
Selenium specifically provides infrastructure for the W3C WebDriver specification Selenium specifically provides infrastructure for the W3C WebDriver specification