blob: 95ad23ec85c218928b1f475d315fd413142a5ca3 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, urllib3
, selenium
, cssselect
, django
, flask
, lxml
, pytestCheckHook
, zope-testbrowser
}:
buildPythonPackage rec {
pname = "splinter";
version = "0.21.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "cobrateam";
repo = "splinter";
rev = "refs/tags/${version}";
hash = "sha256-PGGql8yI1YosoUBAyDoI/8k7s4sVYnXEV7eow3GHH88=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
urllib3
];
passthru.optional-dependencies = {
"zope.testbrowser" = [ zope-testbrowser lxml cssselect ];
django = [ django lxml cssselect ];
flask = [ flask lxml cssselect ];
selenium = [ selenium ];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
disabledTests = [
# driver is present and fails with a different error during loading
"test_browser_local_driver_not_present"
"test_browser_log_missing_drivers"
"test_local_driver_not_present"
];
disabledTestPaths = [
"samples"
# We run neither Chromium nor Firefox nor ...
"tests/test_async_finder.py"
"tests/test_element_is_visible.py"
"tests/test_html_snapshot.py"
"tests/test_iframes.py"
"tests/test_mouse_interaction.py"
"tests/test_popups.py"
"tests/test_screenshot.py"
"tests/test_shadow_root.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"
];
pythonImportsCheck = [ "splinter" ];
meta = with lib; {
changelog = "https://splinter.readthedocs.io/en/latest/news.html";
description = "Browser abstraction for web acceptance testing";
homepage = "https://github.com/cobrateam/splinter";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}
|