From 9a578a2c083bf21a8688088c3ef787f6faae892a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 11 Jun 2022 00:15:01 +0000 Subject: [PATCH] python310Packages.splinter: 0.17.0 -> 0.18.0 https://github.com/cobrateam/splinter/releases/tag/0.18.0 --- .../python-modules/splinter/default.nix | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix index a368d1a81131..2b4cef2e30f8 100644 --- a/pkgs/development/python-modules/splinter/default.nix +++ b/pkgs/development/python-modules/splinter/default.nix @@ -1,20 +1,29 @@ { lib , buildPythonPackage +, isPy27 , fetchFromGitHub , selenium +, cssselect +, django , flask +, lxml , pytestCheckHook +, zope-testbrowser }: buildPythonPackage rec { pname = "splinter"; - version = "0.17.0"; + version = "0.18.0"; + + disabled = isPy27; + + format = "setuptools"; src = fetchFromGitHub { owner = "cobrateam"; repo = "splinter"; rev = version; - hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ="; + hash = "sha256-kJ5S/fBesaxTbxCQ0yBR30+CfCV6U5jgbfDZA7eF6ac="; }; propagatedBuildInputs = [ @@ -22,27 +31,35 @@ buildPythonPackage rec { ]; checkInputs = [ + cssselect + django flask + lxml pytestCheckHook + zope-testbrowser ]; disabledTests = [ # driver is present and fails with a different error during loading + "test_browser_local_driver_not_present" "test_local_driver_not_present" ]; disabledTestPaths = [ "samples" - # TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name - "tests/test_djangoclient.py" - "tests/test_flaskclient.py" + # We run neither Chromium nor Firefox nor ... + "tests/test_async_finder.py" + "tests/test_html_snapshot.py" + "tests/test_iframes.py" + "tests/test_mouse_interaction.py" "tests/test_popups.py" + "tests/test_screenshot.py" + "tests/test_shadow_root.py" "tests/test_webdriver.py" "tests/test_webdriver_chrome.py" "tests/test_webdriver_edge_chromium.py" "tests/test_webdriver_firefox.py" "tests/test_webdriver_remote.py" - "tests/test_zopetestbrowser.py" ]; pythonImportsCheck = [ "splinter" ];