1{ lib
2, stdenv
3, buildPythonPackage
4, fetchFromGitHub
5, python
6, robotframework
7, robotframework-pythonlibcore
8, selenium
9, approvaltests
10, pytest-mockito
11, pytestCheckHook
12, robotstatuschecker
13}:
14
15buildPythonPackage rec {
16 version = "6.1.2";
17 pname = "robotframework-seleniumlibrary";
18
19 # no tests included in PyPI tarball
20 src = fetchFromGitHub {
21 owner = "robotframework";
22 repo = "SeleniumLibrary";
23 rev = "refs/tags/v${version}";
24 sha256 = "sha256-QbAwPm1Y76KPIcHkopiyISULQSwUet021erFa/zi8Zw=";
25 };
26
27 propagatedBuildInputs = [
28 robotframework
29 robotframework-pythonlibcore
30 selenium
31 ];
32
33 nativeCheckInputs = [
34 approvaltests
35 pytest-mockito
36 pytestCheckHook
37 robotstatuschecker
38 ];
39
40 disabledTestPaths = [
41 # https://github.com/robotframework/SeleniumLibrary/issues/1804
42 "utest/test/keywords/test_webdrivercache.py"
43 ];
44
45 disabledTests = [
46 "test_create_opera_executable_path_not_set"
47 "test_create_opera_executable_path_set"
48 "test_create_opera_with_options"
49 "test_create_opera_with_service_log_path_real_path"
50 "test_get_executable_path"
51 "test_get_ff_profile_instance_FirefoxProfile"
52 "test_has_options"
53 "test_importer"
54 "test_log_file_with_index_exist"
55 "test_opera"
56 "test_single_method"
57 ];
58
59 meta = with lib; {
60 changelog = "https://github.com/robotframework/SeleniumLibrary/blob/${src.rev}/docs/SeleniumLibrary-${version}.rst";
61 description = "Web testing library for Robot Framework";
62 homepage = "https://github.com/robotframework/SeleniumLibrary";
63 license = licenses.asl20;
64 maintainers = [ maintainers.marsam ];
65 };
66}