python312Packages.pytest-selenium: init at 4.1.0

Plugin for running Selenium with pytest

https://github.com/pytest-dev/pytest-selenium
This commit is contained in:
Fabian Affolter
2024-10-29 12:22:40 +01:00
parent 9b2793b6ef
commit ded2850bd2
2 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
pytest-base-url,
pytest-html,
pytest-mock,
pytest-variables,
pytest-xdist,
pytest,
pytestCheckHook,
pythonOlder,
requests,
selenium,
tenacity,
}:
buildPythonPackage rec {
pname = "pytest-selenium";
version = "4.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-selenium";
rev = "refs/tags/${version}";
hash = "sha256-fIyos73haqTAgp5WVvMwJswQAtXnsnUeXKjPweXLGRM=";
};
build-system = [
hatch-vcs
hatchling
];
buildInput = [ pytest ];
dependencies = [
pytest-base-url
pytest-html
pytest-variables
requests
selenium
tenacity
];
nativeCheckInputs = [
pytest-mock
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "pytest_selenium" ];
disabledTests = [
# Tests require additional setup and/or network features
"test_driver_quit"
"test_driver_retry_pass"
"test_event_listening_webdriver"
"test_invalid_credentials_env"
"test_invalid_credentials_file"
"test_invalid_host"
"test_launch_case_insensitive"
"test_launch"
"test_options"
"test_preferences_marker"
"test_profile"
"test_xdist"
];
meta = {
description = "Plugin for running Selenium with pytest";
homepage = "https://github.com/pytest-dev/pytest-selenium";
changelog = "https://github.com/pytest-dev/pytest-selenium/releases/tag/${version}";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@@ -12611,6 +12611,8 @@ self: super: with self; {
pytest-responses = callPackage ../development/python-modules/pytest-responses { };
pytest-selenium = callPackage ../development/python-modules/pytest-selenium { };
pytest-server-fixtures = callPackage ../development/python-modules/pytest-server-fixtures { };
pytest-services = callPackage ../development/python-modules/pytest-services { };