blob: 284c31e74c26fe5d16d7e6c79b03da6aabfd020b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
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;
};
}
|