nixpkgs/pkgs/development/python-modules/webdriver-manager/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

70 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
packaging,
pybrowsers,
pytestCheckHook,
python-dotenv,
requests,
selenium,
setuptools,
}:
buildPythonPackage rec {
pname = "webdriver-manager";
version = "4.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "SergeyPirogov";
repo = "webdriver_manager";
tag = "v${version}";
hash = "sha256-ZmrQa/2vPwYgSvY3ZUvilg4RizVXpu5hvJJBQVXkK8E=";
};
__darwinAllowLocalNetworking = true;
build-system = [ setuptools ];
dependencies = [
packaging
python-dotenv
requests
];
nativeCheckInputs = [
pybrowsers
pytestCheckHook
selenium
];
pythonImportsCheck = [ "webdriver_manager" ];
disabledTestPaths = [
# Tests require network access and browsers available
"tests_negative/"
"tests_xdist/"
"tests/test_brave_driver.py"
"tests/test_chrome_driver.py"
"tests/test_chrome_driver.py"
"tests/test_chromium_driver.py"
"tests/test_custom_http_client.py"
"tests/test_downloader.py"
"tests/test_edge_driver.py"
"tests/test_firefox_manager.py"
"tests/test_ie_driver.py"
"tests/test_opera_manager.py"
"tests/test_opera_manager.py"
"tests/test_silent_global_logs.py"
];
meta = {
description = "Module to manage the binary drivers for different browsers";
homepage = "https://github.com/SergeyPirogov/webdriver_manager/";
changelog = "https://github.com/SergeyPirogov/webdriver_manager/blob/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
}