Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / webdriver-manager / default.nix
blob6680fa7eea6b1ab69a3fc5c85a2484301f93fed7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , packaging
5 , pybrowsers
6 , pytestCheckHook
7 , python-dotenv
8 , pythonOlder
9 , requests
10 , selenium
11 , setuptools
14 buildPythonPackage rec {
15   pname = "webdriver-manager";
16   version = "4.0.1";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "SergeyPirogov";
23     repo = "webdriver_manager";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-PdUlloJ4DncnktKQHofn/OLVrgSVyWhaeEEhl3Hgjek=";
26   };
28   nativeBuildInputs = [
29     setuptools
30   ];
32   propagatedBuildInputs = [
33     packaging
34     python-dotenv
35     requests
36   ];
38   nativeCheckInputs = [
39     pybrowsers
40     pytestCheckHook
41     selenium
42   ];
44   pythonImportsCheck = [
45     "webdriver_manager"
46   ];
48   disabledTestPaths = [
49     # Tests require network access and browsers available
50     "tests_negative/"
51     "tests_xdist/"
52     "tests/test_brave_driver.py"
53     "tests/test_chrome_driver.py"
54     "tests/test_chrome_driver.py"
55     "tests/test_chromium_driver.py"
56     "tests/test_custom_http_client.py"
57     "tests/test_downloader.py"
58     "tests/test_edge_driver.py"
59     "tests/test_firefox_manager.py"
60     "tests/test_ie_driver.py"
61     "tests/test_opera_manager.py"
62     "tests/test_opera_manager.py"
63     "tests/test_silent_global_logs.py"
64   ];
66   meta = with lib; {
67     description = "Module to manage the binary drivers for different browsers";
68     homepage = "https://github.com/SergeyPirogov/webdriver_manager/";
69     changelog = "https://github.com/SergeyPirogov/webdriver_manager/blob/${version}/CHANGELOG.md";
70     license = licenses.asl20;
71     maintainers = with maintainers; [ fab ];
72   };