diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-11-01 12:06:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 12:06:27 +0100 |
commit | 39efd75b563a62d554b229624c78a646d014923a (patch) | |
tree | fa173fca671e6b31bb64c556a2af7e65461f302b | |
parent | 2849cfb6e6fec0c6e6a4a4dbf4e2b7279c251d62 (diff) | |
parent | b222b771cdf67cbcd0bfa62f742bbbc1a3342168 (diff) | |
download | nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar.gz nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar.bz2 nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar.lz nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar.xz nixpkgs-39efd75b563a62d554b229624c78a646d014923a.tar.zst nixpkgs-39efd75b563a62d554b229624c78a646d014923a.zip |
Merge pull request #257728 from arkivm/update-selenium
python311Packages.selenium: 4.12.0 -> 4.14.0
-rw-r--r-- | pkgs/development/python-modules/selenium/default.nix | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/selenium/default.nix b/pkgs/development/python-modules/selenium/default.nix index fdb052a4749..086c5310897 100644 --- a/pkgs/development/python-modules/selenium/default.nix +++ b/pkgs/development/python-modules/selenium/default.nix @@ -8,12 +8,15 @@ , trio , trio-websocket , urllib3 +, pytest-trio , nixosTests +, stdenv +, python }: buildPythonPackage rec { pname = "selenium"; - version = "4.12.0"; + version = "4.14.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -23,18 +26,30 @@ buildPythonPackage rec { repo = "selenium"; # check if there is a newer tag with or without -python suffix rev = "refs/tags/selenium-${version}"; - hash = "sha256-A2lI40bPSIri/0yp6C3aJZBX5p6ON1fWGfJTcul9/2o="; + hash = "sha256-cTMCKfFLUlJDbTUQA3Z/pKCE1RQQRMb4K8hKKn9HqvU="; }; - postPatch = '' - substituteInPlace py/selenium/webdriver/firefox/service.py \ - --replace 'DEFAULT_EXECUTABLE_PATH = "geckodriver"' 'DEFAULT_EXECUTABLE_PATH = "${geckodriver}/bin/geckodriver"' - ''; - preConfigure = '' cd py ''; + postInstall = '' + DST_PREFIX=$out/lib/${python.libPrefix}/site-packages/selenium/webdriver/ + DST_REMOTE=$DST_PREFIX/remote/ + DST_FF=$DST_PREFIX/firefox + cp ../rb/lib/selenium/webdriver/atoms/getAttribute.js $DST_REMOTE + cp ../rb/lib/selenium/webdriver/atoms/isDisplayed.js $DST_REMOTE + cp ../rb/lib/selenium/webdriver/atoms/findElements.js $DST_REMOTE + cp ../javascript/cdp-support/mutation-listener.js $DST_REMOTE + cp ../third_party/js/selenium/webdriver.json $DST_FF/webdriver_prefs.json + '' + lib.optionalString stdenv.isDarwin '' + mkdir -p $DST_PREFIX/common/macos + cp ../common/manager/macos/selenium-manager $DST_PREFIX/common/macos + '' + lib.optionalString stdenv.isLinux '' + mkdir -p $DST_PREFIX/common/linux/ + cp ../common/manager/linux/selenium-manager $DST_PREFIX/common/linux/ + ''; + propagatedBuildInputs = [ certifi trio @@ -44,6 +59,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook + pytest-trio ]; passthru.tests = { |