summary refs log tree commit diff
path: root/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix
blob: fe33d2e3f6f49c4563940733ca306b68277b9781 (plain) (blame)
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
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, robotframework
, robotframework-pythonlibcore
, selenium
, approvaltests
, pytest-mockito
, pytestCheckHook
, robotstatuschecker
}:

buildPythonPackage rec {
  version = "6.1.0";
  pname = "robotframework-seleniumlibrary";

  # no tests included in PyPI tarball
  src = fetchFromGitHub {
    owner = "robotframework";
    repo = "SeleniumLibrary";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-iCZU+9xFUPoyucdQ/26dgxAm8jRf92P3JyA2KqV8bYI=";
  };

  propagatedBuildInputs = [
    robotframework
    robotframework-pythonlibcore
    selenium
  ];

  nativeCheckInputs = [
    approvaltests
    pytest-mockito
    pytestCheckHook
    robotstatuschecker
  ];

  disabledTestPaths = [
    # https://github.com/robotframework/SeleniumLibrary/issues/1804
    "utest/test/keywords/test_webdrivercache.py"
  ];

  disabledTests = [
    "test_create_opera_executable_path_not_set"
    "test_create_opera_executable_path_set"
    "test_create_opera_with_options"
    "test_create_opera_with_service_log_path_real_path"
    "test_get_executable_path"
    "test_get_ff_profile_instance_FirefoxProfile"
    "test_has_options"
    "test_importer"
    "test_log_file_with_index_exist"
    "test_opera"
    "test_single_method"
  ];

  meta = with lib; {
    changelog = "https://github.com/robotframework/SeleniumLibrary/blob/${src.rev}/docs/SeleniumLibrary-${version}.rst";
    description = "Web testing library for Robot Framework";
    homepage = "https://github.com/robotframework/SeleniumLibrary";
    license = licenses.asl20;
    maintainers = [ maintainers.marsam ];
  };
}