about summary refs log tree commit diff
path: root/pkgs/development/python-modules/splinter/default.nix
blob: a368d1a81131f49ebcc87a21a2b4b98e4cbe9adc (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, selenium
, flask
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "splinter";
  version = "0.17.0";

  src = fetchFromGitHub {
    owner = "cobrateam";
    repo = "splinter";
    rev = version;
    hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ=";
  };

  propagatedBuildInputs = [
    selenium
  ];

  checkInputs = [
    flask
    pytestCheckHook
  ];

  disabledTests = [
    # driver is present and fails with a different error during loading
    "test_local_driver_not_present"
  ];

  disabledTestPaths = [
    "samples"
    # TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name
    "tests/test_djangoclient.py"
    "tests/test_flaskclient.py"
    "tests/test_popups.py"
    "tests/test_webdriver.py"
    "tests/test_webdriver_chrome.py"
    "tests/test_webdriver_edge_chromium.py"
    "tests/test_webdriver_firefox.py"
    "tests/test_webdriver_remote.py"
    "tests/test_zopetestbrowser.py"
  ];

  pythonImportsCheck = [ "splinter" ];

  meta = with lib; {
    description = "Browser abstraction for web acceptance testing";
    homepage = "https://github.com/cobrateam/splinter";
    license = licenses.bsd3;
    maintainers = with maintainers; [ dotlambda ];
  };
}